mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
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:
parent
1c7202ea06
commit
a5a03facd1
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 %"
|
||||
|
|
Loading…
Reference in a new issue