mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
gst/gstelement.c: Small tweak, element in ASYNC remains ASYNC.
Original commit message from CVS: * gst/gstelement.c: (gst_element_set_state), (gst_element_change_state): Small tweak, element in ASYNC remains ASYNC.
This commit is contained in:
parent
2d3e9f6438
commit
93823de17e
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-09-30 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/gstelement.c: (gst_element_set_state),
|
||||
(gst_element_change_state):
|
||||
Small tweak, element in ASYNC remains ASYNC.
|
||||
|
||||
2005-09-30 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/base/gstbasesink.c: (gst_base_sink_change_state):
|
||||
|
|
|
@ -1854,6 +1854,10 @@ gst_element_set_state (GstElement * element, GstState state)
|
|||
* the STATE_LOCK */
|
||||
gst_element_commit_state (element);
|
||||
gst_element_lost_state (element);
|
||||
if (state == GST_STATE_PENDING (element)) {
|
||||
GST_STATE_UNLOCK (element);
|
||||
return GST_STATE_CHANGE_ASYNC;
|
||||
}
|
||||
}
|
||||
|
||||
/* start with the current state */
|
||||
|
@ -2094,7 +2098,6 @@ was_ok:
|
|||
else
|
||||
return GST_STATE_CHANGE_SUCCESS;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue