pipeline: only have a top-level pipeline do pipeline management

Fixes #665390.
This commit is contained in:
Mark Nauwelaerts 2011-12-02 14:10:32 +01:00
parent 434b5093ba
commit f2d76b7e7b

View file

@ -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