Commit c1988b7e authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

basesink: ensure start_time reset upon flush

parent febde0c1
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment