mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
pipeline: only have a top-level pipeline do pipeline management
Fixes #665390.
This commit is contained in:
parent
434b5093ba
commit
f2d76b7e7b
1 changed files with 3 additions and 1 deletions
|
@ -408,7 +408,9 @@ gst_pipeline_change_state (GstElement * element, GstStateChange transition)
|
|||
|
||||
/* running time changed, either with a PAUSED or a flush, we need to check
|
||||
* if there is a new clock & update the base time */
|
||||
if (update_clock || last_start_time != start_time) {
|
||||
/* only do this for top-level, however */
|
||||
if (GST_OBJECT_PARENT (element) == NULL &&
|
||||
(update_clock || last_start_time != start_time)) {
|
||||
GST_DEBUG_OBJECT (pipeline, "Need to update start_time");
|
||||
|
||||
/* when going to PLAYING, select a clock when needed. If we just got
|
||||
|
|
Loading…
Reference in a new issue