sys/dvb/gstdvbsrc.c: With constant read failures, make sure we exit the read_device method.

Original commit message from CVS:
* sys/dvb/gstdvbsrc.c:
With constant read failures, make sure we exit the read_device
method.
This commit is contained in:
Zaheer Abbas Merali 2008-12-23 16:32:05 +00:00
parent ef7d946e23
commit 363a7b761c
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-12-23 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* sys/dvb/gstdvbsrc.c:
With constant read failures, make sure we exit the read_device
method.
2008-12-23 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* sys/dvb/gstdvbsrc.c:

View file

@ -918,7 +918,10 @@ read_device (int fd, int adapter_number, int frontend_number, int size,
}
} else if (errno == -EINTR) { // poll interrupted
;
if (attempts % 50 == 0) {
gst_buffer_unref (buf);
return NULL;
};
}
}