mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
0587501517
commit
415fc3df0e
2 changed files with 8 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue