mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
dvbsrc: retry opening the frontend on EINTR
This commit is contained in:
parent
071f93c72f
commit
10ece74f10
1 changed files with 3 additions and 2 deletions
|
@ -1462,8 +1462,9 @@ gst_dvbsrc_open_frontend (GstDvbSrc * object, gboolean writable)
|
|||
GST_INFO_OBJECT (object, "Using frontend device: %s", frontend_dev);
|
||||
|
||||
/* open frontend */
|
||||
if ((object->fd_frontend =
|
||||
open (frontend_dev, writable ? O_RDWR : O_RDONLY)) < 0) {
|
||||
LOOP_WHILE_EINTR (object->fd_frontend,
|
||||
open (frontend_dev, writable ? O_RDWR : O_RDONLY));
|
||||
if (object->fd_frontend < 0) {
|
||||
switch (errno) {
|
||||
case ENOENT:
|
||||
GST_ELEMENT_ERROR (object, RESOURCE, NOT_FOUND,
|
||||
|
|
Loading…
Reference in a new issue