From 8c5bad49568f0c9ee7ec5c4f90596a34026e880e Mon Sep 17 00:00:00 2001 From: Zaheer Abbas Merali Date: Mon, 12 Mar 2001 01:55:13 +0000 Subject: [PATCH] making wait for REAPING state when gst_bin_iterate returns non zero Original commit message from CVS: making wait for REAPING state when gst_bin_iterate returns non zero --- gst/gstthread.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/gstthread.c b/gst/gstthread.c index ea2d2ed21e..7162fdd1cc 100644 --- a/gst/gstthread.c +++ b/gst/gstthread.c @@ -346,10 +346,11 @@ gst_thread_main_loop (void *arg) while (!GST_FLAG_IS_SET (thread, GST_THREAD_STATE_REAPING)) { if (GST_FLAG_IS_SET (thread, GST_THREAD_STATE_SPINNING)) { if (!gst_bin_iterate (GST_BIN (thread))) { - g_mutex_lock(thread->lock); + /*g_mutex_lock(thread->lock); GST_FLAG_UNSET (thread, GST_THREAD_STATE_SPINNING); GST_DEBUG(0,"sync: removed spinning state due to failed iteration\n"); - g_mutex_unlock(thread->lock); + g_mutex_unlock(thread->lock);*/ + gst_thread_wait_thread(thread,GST_THREAD_STATE_REAPING); } } else {