mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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.
This commit is contained in:
parent
2f23444d35
commit
465b40a2b8
1 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue