Commit a5a03fac authored by Andy Wingo Wingo's avatar Andy Wingo Wingo

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.
parent 1c7202ea
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
......
......@@ -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 %"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment