From 316124eb40143b4a5bd6237081ea4e9aef1bc4cf Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 6 May 2003 23:42:23 +0000 Subject: [PATCH] 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 --- gst/gstbin.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gst/gstbin.c b/gst/gstbin.c index c7c637a..26f31e7 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -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) { -- 2.7.4