From 34a49a9a06d180beee8e08457c2f5c68bf53ab9b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 6 Apr 2007 12:58:06 +0000 Subject: [PATCH] gst/playback/gstplaybin.c: Activate sync in playbin, we are ready to handle it for live streams. Original commit message from CVS: * gst/playback/gstplaybin.c: (add_sink), (gst_play_bin_change_state): Activate sync in playbin, we are ready to handle it for live streams. --- ChangeLog | 6 ++++++ gst/playback/gstplaybin.c | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index ae1be90..5e93afc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-06 Wim Taymans + + * gst/playback/gstplaybin.c: (add_sink), + (gst_play_bin_change_state): + Activate sync in playbin, we are ready to handle it for live streams. + 2007-04-06 Tim-Philipp Müller * tests/check/elements/playbin.c: diff --git a/gst/playback/gstplaybin.c b/gst/playback/gstplaybin.c index fff5eff..82ece37 100644 --- a/gst/playback/gstplaybin.c +++ b/gst/playback/gstplaybin.c @@ -1415,13 +1415,6 @@ add_sink (GstPlayBin * play_bin, GstElement * sink, GstPad * srcpad, } gst_bin_add (GST_BIN_CAST (play_bin), sink); - /* for live pipelines, disable the sync in the sinks until core handles this - * correctly. */ - if (play_bin->is_live) { - gst_pipeline_use_clock (GST_PIPELINE (play_bin), NULL); - gst_element_set_clock (sink, NULL); - } - /* bring it to the required state so we can link to the peer without * breaking the flow */ stateret = gst_element_set_state (sink, state); @@ -1798,7 +1791,6 @@ gst_play_bin_change_state (GstElement * element, GstStateChange transition) switch (transition) { case GST_STATE_CHANGE_READY_TO_PAUSED: - gst_pipeline_auto_clock (GST_PIPELINE (play_bin)); /* this really is the easiest way to make the state change return * ASYNC until we added the sinks */ if (!play_bin->fakesink) { -- 2.7.4