[MPlayer-cvslog] r20011 - trunk/libmpdemux/demux_mpg.c
nicodvb
subversion at mplayerhq.hu
Sun Oct 1 11:33:23 CEST 2006
Author: nicodvb
Date: Sun Oct 1 11:33:23 2006
New Revision: 20011
Modified:
trunk/libmpdemux/demux_mpg.c
Log:
Reset demuxer->sub (consistently with audio and video) after seeking and at the end
of demux_mpg_open() to prevent ghost packets. Patch by Olaf Mandel - olaf mandel name.
Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c (original)
+++ trunk/libmpdemux/demux_mpg.c Sun Oct 1 11:33:23 2006
@@ -137,6 +137,7 @@
}
ds_free_packs(demuxer->audio);
ds_free_packs(demuxer->video);
+ ds_free_packs(demuxer->sub);
demuxer->stream->eof=0; // clear eof flag
demuxer->video->eof=0;
demuxer->audio->eof=0;
@@ -791,6 +792,7 @@
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);
demuxer->stream->eof=0; // clear eof flag
d_video->eof=0;
d_audio->eof=0;
More information about the MPlayer-cvslog
mailing list