gstbin.c: commented out the requirement that a bin be !PLAYING to add gstthread.c: fixed an old failed merge that loc...

Original commit message from CVS:
gstbin.c: commented out the requirement that a bin be !PLAYING to add
gstthread.c: fixed an old failed merge that locked the same mutex twice
...in a row
This commit is contained in:
Erik Walthinsen 2001-04-26 22:32:13 +00:00
parent 583f6660fa
commit 0e6ec7d33d
2 changed files with 1 additions and 3 deletions

View file

@ -265,7 +265,7 @@ gst_bin_add (GstBin *bin,
GST_DEBUG_ENTER ("");
// must be not be in PLAYING state in order to modify bin
g_return_if_fail (GST_STATE (bin) != GST_STATE_PLAYING);
// g_return_if_fail (GST_STATE (bin) != GST_STATE_PLAYING);
// the element must not already have a parent
g_return_if_fail (GST_ELEMENT_PARENT(element) == NULL);

View file

@ -252,8 +252,6 @@ gst_thread_change_state (GstElement *element)
GST_DEBUG (GST_CAT_THREAD, "creating thread \"%s\"\n",
GST_ELEMENT_NAME (GST_ELEMENT (element)));
g_mutex_lock(thread->lock);
g_mutex_lock (thread->lock);
// create the thread
pthread_create (&thread->thread_id, NULL,