From f2d76b7e7b1af42963e3c252fcce9f5ac7911ce4 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 2 Dec 2011 14:10:32 +0100 Subject: [PATCH] pipeline: only have a top-level pipeline do pipeline management Fixes #665390. --- gst/gstpipeline.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/gstpipeline.c b/gst/gstpipeline.c index b032c2f982..8612ae3e40 100644 --- a/gst/gstpipeline.c +++ b/gst/gstpipeline.c @@ -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