dvbsrc: retry opening the frontend on EINTR
This commit is contained in:
parent
071f93c72f
commit
10ece74f10
@ -1462,8 +1462,9 @@ gst_dvbsrc_open_frontend (GstDvbSrc * object, gboolean writable)
|
|||||||
GST_INFO_OBJECT (object, "Using frontend device: %s", frontend_dev);
|
GST_INFO_OBJECT (object, "Using frontend device: %s", frontend_dev);
|
||||||
|
|
||||||
/* open frontend */
|
/* open frontend */
|
||||||
if ((object->fd_frontend =
|
LOOP_WHILE_EINTR (object->fd_frontend,
|
||||||
open (frontend_dev, writable ? O_RDWR : O_RDONLY)) < 0) {
|
open (frontend_dev, writable ? O_RDWR : O_RDONLY));
|
||||||
|
if (object->fd_frontend < 0) {
|
||||||
switch (errno) {
|
switch (errno) {
|
||||||
case ENOENT:
|
case ENOENT:
|
||||||
GST_ELEMENT_ERROR (object, RESOURCE, NOT_FOUND,
|
GST_ELEMENT_ERROR (object, RESOURCE, NOT_FOUND,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user