diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-16 00:33:30 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-16 00:33:30 +0000 |
| commit | 7f6e964b3c956b93ac7097127e0c1da7afd3df6c (patch) | |
| tree | b0f3ac05863c70378fe5d473cb354fdee5d13f31 /lib/dvb/demux.cpp | |
| parent | 003666edba9c0f94184e39b501aaf44036d19971 (diff) | |
| download | enigma2-7f6e964b3c956b93ac7097127e0c1da7afd3df6c.tar.gz enigma2-7f6e964b3c956b93ac7097127e0c1da7afd3df6c.zip | |
don't use setsource with DVB-API < 3
Diffstat (limited to 'lib/dvb/demux.cpp')
| -rw-r--r-- | lib/dvb/demux.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/dvb/demux.cpp b/lib/dvb/demux.cpp index d2a2a545..6c783d38 100644 --- a/lib/dvb/demux.cpp +++ b/lib/dvb/demux.cpp @@ -6,7 +6,6 @@ #include <unistd.h> #include <signal.h> - #if HAVE_DVB_API_VERSION < 3 #include <ost/dmx.h> #ifndef DMX_SET_NEGFILTER_MASK @@ -49,18 +48,24 @@ DEFINE_REF(eDVBDemux) RESULT eDVBDemux::setSourceFrontend(int fenum) { +#if HAVE_DVB_API_VERSION >= 3 int fd = openDemux(); int res = ::ioctl(fd, DMX_SET_SOURCE, DMX_SOURCE_FRONT0 + fenum); ::close(fd); return res; +#endif + return 0; } RESULT eDVBDemux::setSourcePVR(int pvrnum) { +#if HAVE_DVB_API_VERSION >= 3 int fd = openDemux(); int res = ::ioctl(fd, DMX_SET_SOURCE, DMX_SOURCE_DVR0 + pvrnum); ::close(fd); return res; +#endif + return 0; } RESULT eDVBDemux::createSectionReader(eMainloop *context, ePtr<iDVBSectionReader> &reader) |
