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.
This commit is contained in:
Ronald S. Bultje 2005-08-15 13:27:03 +00:00
parent 0587501517
commit 415fc3df0e
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2005-08-15 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* 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 <rbultje@ronald.bitfreak.net>
* ext/ffmpeg/gstffmpegcodecmap.c:

View file

@ -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);
}