mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-12 11:26:39 +00:00
exactly opposite check needed in wait_thread
Original commit message from CVS: exactly opposite check needed in wait_thread
This commit is contained in:
parent
e143ca77fb
commit
e7b0927f99
1 changed files with 2 additions and 2 deletions
|
@ -403,8 +403,8 @@ gst_thread_wait_thread (GstThread *thread, guint syncflag, gboolean set)
|
||||||
g_mutex_lock (thread->lock[syncflag-GST_THREAD_STATE_STARTED]);
|
g_mutex_lock (thread->lock[syncflag-GST_THREAD_STATE_STARTED]);
|
||||||
GST_DEBUG (0,"sync: waiting for thread for %u to be set %d\n",
|
GST_DEBUG (0,"sync: waiting for thread for %u to be set %d\n",
|
||||||
syncflag,set);
|
syncflag,set);
|
||||||
while ((GST_FLAG_IS_SET(thread,syncflag) && set==TRUE) ||
|
while ((!GST_FLAG_IS_SET(thread,syncflag) && set==TRUE) ||
|
||||||
(!GST_FLAG_IS_SET(thread,syncflag) && set==FALSE)) {
|
(GST_FLAG_IS_SET(thread,syncflag) && set==FALSE)) {
|
||||||
g_get_current_time(&finaltime);
|
g_get_current_time(&finaltime);
|
||||||
if (finaltime.tv_usec>995000) {
|
if (finaltime.tv_usec>995000) {
|
||||||
finaltime.tv_sec++;
|
finaltime.tv_sec++;
|
||||||
|
|
Loading…
Reference in a new issue