mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
ipcpipeline: Simplify usage of g_cond_wait_until()
It will return FALSE if a timeout happened. So don't check if we timed out afterwards, just use the return value. CID #1416347
This commit is contained in:
parent
00cfa72085
commit
39cd2bf8fe
1 changed files with 1 additions and 2 deletions
|
@ -102,8 +102,7 @@ comm_request_wait (GstIpcPipelineComm * comm, CommRequest * req,
|
|||
req->id);
|
||||
while (!req->replied) {
|
||||
if (ack_type == ACK_TYPE_TIMED) {
|
||||
g_cond_wait_until (&req->cond, &comm->mutex, end_time);
|
||||
if (g_get_monotonic_time () >= end_time)
|
||||
if (!g_cond_wait_until (&req->cond, &comm->mutex, end_time))
|
||||
break;
|
||||
} else
|
||||
g_cond_wait (&req->cond, &comm->mutex);
|
||||
|
|
Loading…
Reference in a new issue