Skip to content

Commit

Permalink
[eDVBUsbAdapter]
Browse files Browse the repository at this point in the history
* add debug for vtuner init
  • Loading branch information
jbleyel committed Dec 19, 2023
1 parent efe020c commit a613332
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/dvb/dvb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,13 @@ eDVBUsbAdapter::eDVBUsbAdapter(int nr)
snprintf(filename, sizeof(filename), "/dev/misc/vtuner%d", vtunerid);
if (::access(filename, F_OK) < 0)
{
eDebug("[eDVBUsbAdapter] '%s' not found", filename);
snprintf(filename, sizeof(filename), "/dev/vtuner%d", vtunerid);
if (::access(filename, F_OK) < 0) break;
if (::access(filename, F_OK) < 0)
{
eDebug("[eDVBUsbAdapter] '%s' not found -> stop here!", filename);
break;
}
}
vtunerFd = open(filename, O_RDWR | O_CLOEXEC);
if (vtunerFd < 0)
Expand Down

0 comments on commit a613332

Please sign in to comment.