mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 08:17:01 +00:00
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.
This commit is contained in:
parent
0c9fa8366b
commit
34a49a9a06
2 changed files with 6 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-04-06 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* 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 <tim at centricular dot net>
|
||||
|
||||
* tests/check/elements/playbin.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) {
|
||||
|
|
Loading…
Reference in a new issue