mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
basevideodecoder: Reset the segment on FLUSH_STOP and when going back to READY
This commit is contained in:
parent
8559d5b9e1
commit
29943c87f8
1 changed files with 2 additions and 0 deletions
|
@ -284,6 +284,7 @@ gst_base_video_decoder_sink_event (GstPad * pad, GstEvent * event)
|
|||
GST_OBJECT_LOCK (base_video_decoder);
|
||||
base_video_decoder->earliest_time = GST_CLOCK_TIME_NONE;
|
||||
base_video_decoder->proportion = 0.5;
|
||||
gst_segment_init (&base_video_decoder->segment, GST_FORMAT_TIME);
|
||||
GST_OBJECT_UNLOCK (base_video_decoder);
|
||||
}
|
||||
default:
|
||||
|
@ -927,6 +928,7 @@ gst_base_video_decoder_change_state (GstElement * element,
|
|||
if (base_video_decoder_class->stop) {
|
||||
base_video_decoder_class->stop (base_video_decoder);
|
||||
}
|
||||
gst_segment_init (&base_video_decoder->segment, GST_FORMAT_TIME);
|
||||
g_list_foreach (base_video_decoder->timestamps, (GFunc) g_free, NULL);
|
||||
g_list_free (base_video_decoder->timestamps);
|
||||
base_video_decoder->timestamps = NULL;
|
||||
|
|
Loading…
Reference in a new issue