summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-05-28 15:40:01 +0200
committerWim Taymans <wim@metal.(none)>2009-05-29 11:55:38 +0200
commit465b40a2b8f9c2b65966b0d544b32ec960a41341 (patch)
tree9f79d57775aa37bb3410e9eae6f0ffd4b933803c
parent2f23444d3509e2bb18fbe02b1d9b3465822ea66f (diff)
bin: set the base_time and start_time better
Simply set the start_time and base_time on the element instead of calling the setters.
-rw-r--r--gst/gstbin.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gst/gstbin.c b/gst/gstbin.c
index ffbcd58333..087c607003 100644
--- a/gst/gstbin.c
+++ b/gst/gstbin.c
@@ -1977,14 +1977,13 @@ gst_bin_element_set_state (GstBin * bin, GstElement * element,
gboolean locked;
GList *found;
- /* set base_time and start time on child */
- gst_element_set_base_time (element, base_time);
- gst_element_set_start_time (element, start_time);
-
GST_STATE_LOCK (element);
- /* peel off the locked flag */
GST_OBJECT_LOCK (element);
+ /* set base_time and start time on child */
+ GST_ELEMENT_START_TIME (element) = start_time;
+ element->base_time = base_time;
+ /* peel off the locked flag */
locked = GST_OBJECT_FLAG_IS_SET (element, GST_ELEMENT_LOCKED_STATE);
/* get previous state return */
ret = GST_STATE_RETURN (element);