mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
made wait_thread check for logical true rather than check equality with gboolean
Original commit message from CVS: made wait_thread check for logical true rather than check equality with gboolean
This commit is contained in:
parent
518f0ac5d1
commit
e143ca77fb
1 changed files with 2 additions and 1 deletions
|
@ -403,7 +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) {
|
||||
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++;
|
||||
|
|
Loading…
Reference in a new issue