From e7b0927f99f56f8178fa6ebd805974114f10f09a Mon Sep 17 00:00:00 2001 From: Zaheer Abbas Merali Date: Tue, 13 Mar 2001 01:24:17 +0000 Subject: [PATCH] exactly opposite check needed in wait_thread Original commit message from CVS: exactly opposite check needed in wait_thread --- gst/gstthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstthread.c b/gst/gstthread.c index 3af6d0b0ef..432b57cf36 100644 --- a/gst/gstthread.c +++ b/gst/gstthread.c @@ -403,8 +403,8 @@ gst_thread_wait_thread (GstThread *thread, guint syncflag, gboolean set) g_mutex_lock (thread->lock[syncflag-GST_THREAD_STATE_STARTED]); GST_DEBUG (0,"sync: waiting for thread for %u to be set %d\n", syncflag,set); - while ((GST_FLAG_IS_SET(thread,syncflag) && set==TRUE) || - (!GST_FLAG_IS_SET(thread,syncflag) && set==FALSE)) { + while ((!GST_FLAG_IS_SET(thread,syncflag) && set==TRUE) || + (GST_FLAG_IS_SET(thread,syncflag) && set==FALSE)) { g_get_current_time(&finaltime); if (finaltime.tv_usec>995000) { finaltime.tv_sec++;