[MPlayer-cvslog] r26959 - trunk/libmpdemux/demux_mpg.c
nicodvb
subversion at mplayerhq.hu
Mon Jun 2 12:18:44 CEST 2008
Author: nicodvb
Date: Mon Jun 2 12:18:44 2008
New Revision: 26959
Log:
use demux_flush() where appropriate
Modified:
trunk/libmpdemux/demux_mpg.c
Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c (original)
+++ trunk/libmpdemux/demux_mpg.c Mon Jun 2 12:18:44 2008
@@ -158,9 +158,7 @@ static float read_first_mpeg_pts_at_posi
if(found == 3) pts = found_pts3;
//clean up from searching of first pts;
- ds_free_packs(demuxer->audio);
- ds_free_packs(demuxer->video);
- ds_free_packs(demuxer->sub);
+ demux_flush(demuxer);
return pts;
}
@@ -981,9 +979,7 @@ void demux_seek_mpg(demuxer_t *demuxer,f
//prepare another seek because we are off by more than 0.5s
if(mpg_d) {
newpos += (newpts - mpg_d->last_pts) * (newpos - oldpos) / (mpg_d->last_pts - oldpts);
- ds_free_packs(d_audio);
- ds_free_packs(d_video);
- ds_free_packs(demuxer->sub);
+ demux_flush(demuxer);
demuxer->stream->eof=0; // clear eof flag
d_video->eof=0;
d_audio->eof=0;
More information about the MPlayer-cvslog
mailing list