"/dev/dvb/adapter%d/demux%d") % adapter % device);
int fd = open(devDemux.c_str(), O_RDONLY | O_NONBLOCK);
if (fd < 0)
- throw SystemException(errno);
+ throwErrno();
body().fd(fd);
}
const
{
if (::ioctl(body().fd(), DMX_SET_FILTER, filter) < 0)
- throw SystemException(errno);
+ throwErrno();
}
// ----------------------------------------------------------------
"/dev/dvb/adapter%d/demux%d") % adapter % device);
int fd = open(devDemux.c_str(), O_RDONLY | O_NONBLOCK);
if (fd < 0)
- throw SystemException(errno);
+ throwErrno();
body().fd(fd);
}
const
{
if (::ioctl(body().fd(), DMX_SET_PES_FILTER, filter) < 0)
- throw SystemException(errno);
+ throwErrno();
}
// ----------------------------------------------------------------
"/dev/dvb/adapter%d/dvr%d") % adapter % device);
int fd = open(devDvr.c_str(), O_RDONLY | O_NONBLOCK);
if (fd < 0)
- throw SystemException(errno);
+ throwErrno();
body().fd(fd);
}