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
This commit is contained in:
Zaheer Abbas Merali 2001-03-12 01:55:13 +00:00
parent d2c506810a
commit 8c5bad4956

View file

@ -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 {