Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb: appears some tuners are not supporting FE_GET_EVENT
This results in a terminal lockup as the ioctl() will loop indefinitely,
testing for != -1 was always a bad idea!
  • Loading branch information
adamsutton committed Jan 22, 2015
1 parent f88f2f3 commit dcdef42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_frontend.c
Expand Up @@ -1328,7 +1328,7 @@ linuxdvb_frontend_tune0

/* discard stale events */
while (1) {
if (ioctl(lfe->lfe_fe_fd, FE_GET_EVENT, &ev) == -1)
if (ioctl(lfe->lfe_fe_fd, FE_GET_EVENT, &ev) < 0)
break;
}

Expand Down

0 comments on commit dcdef42

Please sign in to comment.