From: Ronald S. Bultje Date: Mon, 15 Aug 2005 13:27:03 +0000 (+0000) Subject: ext/ffmpeg/gstffmpegdec.c: Flush buffers in flush-stop, not flush-start, since the... X-Git-Tag: 1.19.3~499^2~1826 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=415fc3df0e161b4073d9b8a6baad078e87948fc3;p=platform%2Fupstream%2Fgstreamer.git ext/ffmpeg/gstffmpegdec.c: Flush buffers in flush-stop, not flush-start, since the task is not stopped yet in flush-s... Original commit message from CVS: * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_sink_event): Flush buffers in flush-stop, not flush-start, since the task is not stopped yet in flush-stop, which may lead to odd crashes in random places inside libavcodec. --- diff --git a/ChangeLog b/ChangeLog index c1a6c73..ce26e25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-08-15 Ronald S. Bultje + + * ext/ffmpeg/gstffmpegdec.c: (gst_ffmpegdec_sink_event): + Flush buffers in flush-stop, not flush-start, since the task is not + stopped yet in flush-stop, which may lead to odd crashes in random + places inside libavcodec. + 2005-08-09 Ronald S. Bultje * ext/ffmpeg/gstffmpegcodecmap.c: diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index bff2b67..af717b3 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -916,7 +916,7 @@ gst_ffmpegdec_sink_event (GstPad * pad, GstEvent * event) } while (try++ < 10); } goto forward; - case GST_EVENT_FLUSH_START: + case GST_EVENT_FLUSH_STOP: if (ffmpegdec->opened) { avcodec_flush_buffers (ffmpegdec->context); }