mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
basesink: ensure start_time reset upon flush
This commit is contained in:
parent
febde0c19f
commit
c1988b7e55
1 changed files with 3 additions and 0 deletions
|
@ -3387,6 +3387,9 @@ gst_base_sink_flush_start (GstBaseSink * basesink, GstPad * pad)
|
|||
if (basesink->priv->async_enabled) {
|
||||
gst_element_lost_state (GST_ELEMENT_CAST (basesink));
|
||||
} else {
|
||||
/* start time reset in above case as well;
|
||||
* arranges for a.o. proper position reporting when flushing in PAUSED */
|
||||
gst_element_set_start_time (GST_ELEMENT_CAST (basesink), 0);
|
||||
basesink->priv->have_latency = TRUE;
|
||||
}
|
||||
gst_base_sink_set_last_buffer (basesink, NULL);
|
||||
|
|
Loading…
Reference in a new issue