ext/ffmpeg/gstffmpegdec.c (gst_ffmpegdec_sink_event): Only drain if we've already set up a codec.

Original commit message from CVS:
2008-03-18  Andy Wingo  <wingo@pobox.com>

* ext/ffmpeg/gstffmpegdec.c (gst_ffmpegdec_sink_event): Only drain
if we've already set up a codec.
This commit is contained in:
Andy Wingo 2008-03-18 10:35:40 +00:00
parent 1c7202ea06
commit a5a03facd1
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-03-18 Andy Wingo <wingo@pobox.com>
* ext/ffmpeg/gstffmpegdec.c (gst_ffmpegdec_sink_event): Only drain
if we've already set up a codec.
2008-03-17 Andy Wingo <wingo@pobox.com>
* ext/ffmpeg/Makefile.am (libgstffmpeg_la_LIBADD): Re-add -lz

View file

@ -2048,7 +2048,8 @@ gst_ffmpegdec_sink_event (GstPad * pad, GstEvent * event)
/* drain pending frames before trying to use the new segment, queued
* buffers belonged to the previous segment. */
gst_ffmpegdec_drain (ffmpegdec);
if (ffmpegdec->context->codec)
gst_ffmpegdec_drain (ffmpegdec);
GST_DEBUG_OBJECT (ffmpegdec,
"NEWSEGMENT in time start %" GST_TIME_FORMAT " -- stop %"