mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 10:40:34 +00:00
state need not be playing with new schedulers when adding/removing elements
Original commit message from CVS: state need not be playing with new schedulers when adding/removing elements
This commit is contained in:
parent
fe3861c2d3
commit
316124eb40
1 changed files with 0 additions and 6 deletions
|
@ -409,9 +409,6 @@ gst_bin_add_func (GstBin *bin, GstElement *element)
|
|||
/* the element must not already have a parent */
|
||||
g_return_if_fail (GST_ELEMENT_PARENT (element) == NULL);
|
||||
|
||||
/* must be not be in PLAYING state in order to modify bin */
|
||||
g_return_if_fail (GST_STATE (bin) != GST_STATE_PLAYING);
|
||||
|
||||
/* then check to see if the element's name is already taken in the bin */
|
||||
if (gst_object_check_uniqueness (bin->children,
|
||||
GST_ELEMENT_NAME (element)) == FALSE)
|
||||
|
@ -541,9 +538,6 @@ gst_bin_remove (GstBin *bin, GstElement *element)
|
|||
g_return_if_fail (GST_IS_ELEMENT (element));
|
||||
g_return_if_fail (bin->children != NULL);
|
||||
|
||||
/* must not be in PLAYING state in order to modify bin */
|
||||
g_return_if_fail (GST_STATE (bin) != GST_STATE_PLAYING);
|
||||
|
||||
bclass = GST_BIN_GET_CLASS (bin);
|
||||
|
||||
if (bclass->remove_element) {
|
||||
|
|
Loading…
Reference in a new issue