From 9ccd6b113403871a4a1d448c1fe220391ae4bfac Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 20 Apr 2011 19:00:07 +0200 Subject: [PATCH] element: don't touch base_time or clock in state change Don't touch the base_time or the clock when setting an element to the READY or NULL state. It is the parent that will manage this for us. --- gst/gstelement.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gst/gstelement.c b/gst/gstelement.c index 2e8028b..3ac4eef 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -2882,15 +2882,7 @@ gst_element_change_state_func (GstElement * element, GstStateChange transition) ready->paused but the element might not have made it to paused */ if (!gst_element_pads_activate (element, FALSE)) { result = GST_STATE_CHANGE_FAILURE; - } else { - gst_element_set_base_time (element, 0); } - - /* In null state release the reference to the clock */ - GST_OBJECT_LOCK (element); - clock_p = &element->clock; - gst_object_replace ((GstObject **) clock_p, NULL); - GST_OBJECT_UNLOCK (element); break; default: /* this will catch real but unhandled state changes; -- 2.7.4