summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2010-12-28 16:23:32 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2010-12-28 16:23:32 +0100
commitef44d4b5397c3587c8cf42c467e7a8299d177ff0 (patch)
tree4b14589e98f70566b476acd44769082bc17f513c /libs
parentd90b7702f1e7b85191590dba11fe0523fabeb40a (diff)
basesink: also preroll async=false sinks
Also preroll async=false sinks after a flush.
Diffstat (limited to 'libs')
-rw-r--r--libs/gst/base/gstbasesink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c
index 9a51543a9..d04c67bc5 100644
--- a/libs/gst/base/gstbasesink.c
+++ b/libs/gst/base/gstbasesink.c
@@ -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;