mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
jpegdec: reset segment info after flush
Reset the segment info after a flush. We use the segment for handling QoS and if we don't reset the segment, QoS is basically disabled after a flushing seek.
This commit is contained in:
parent
0e777bf759
commit
384c4a2495
1 changed files with 1 additions and 0 deletions
|
@ -1338,6 +1338,7 @@ gst_jpeg_dec_sink_event (GstPad * pad, GstEvent * event)
|
|||
case GST_EVENT_FLUSH_STOP:
|
||||
GST_DEBUG_OBJECT (dec, "Aborting decompress");
|
||||
jpeg_abort_decompress (&dec->cinfo);
|
||||
gst_segment_init (&dec->segment, GST_FORMAT_UNDEFINED);
|
||||
gst_jpeg_dec_reset_qos (dec);
|
||||
break;
|
||||
case GST_EVENT_NEWSEGMENT:{
|
||||
|
|
Loading…
Reference in a new issue