mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-11 06:11:27 +00:00
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:
parent
583f6660fa
commit
0e6ec7d33d
2 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue