basesink: also preroll async=false sinks

Also preroll async=false sinks after a flush.
This commit is contained in:
Wim Taymans 2010-12-28 16:23:32 +01:00
parent d90b7702f1
commit ef44d4b539

View file

@ -3239,10 +3239,10 @@ gst_base_sink_flush_start (GstBaseSink * basesink, GstPad * pad)
* anymore */
GST_PAD_STREAM_LOCK (pad);
gst_base_sink_reset_qos (basesink);
/* and we need to commit our state again on the next
* prerolled buffer */
basesink->playing_async = TRUE;
if (basesink->priv->async_enabled) {
/* and we need to commit our state again on the next
* prerolled buffer */
basesink->playing_async = TRUE;
gst_element_lost_state (GST_ELEMENT_CAST (basesink));
} else {
basesink->priv->have_latency = TRUE;