Skip to content
Snippets Groups Projects
Commit dd85a561 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Do not return FALSE if sem_wait() fails with EAGAIN

parent f96d8651
Branches
Tags
No related merge requests found
......@@ -360,13 +360,13 @@ readFrameFromShm(VideoPreviewPrivate *priv)
if (sem_set_id == -1)
return FALSE;
if (sem_wait(sem_set_id) == -1) {
while (sem_wait(sem_set_id) == -1) {
if (errno != EAGAIN) {
g_print("Could not read from shared memory!\n");
perror("shm: ");
}
return FALSE;
}
}
if (priv->using_clutter) {
if (strcmp(priv->format, "rgb24")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment