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:
Wim Taymans 2009-12-01 19:24:02 +01:00
parent 0e777bf759
commit 384c4a2495

View file

@ -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:{