diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-16 00:42:56 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-16 00:42:56 +0000 |
| commit | 6f85c322e5a04efcf2f39868baeda974f9ec87aa (patch) | |
| tree | 6766b7ca93add09c5cad2d069a24eb23785381a9 /lib/dvb/demux.cpp | |
| parent | 7f6e964b3c956b93ac7097127e0c1da7afd3df6c (diff) | |
| download | enigma2-6f85c322e5a04efcf2f39868baeda974f9ec87aa.tar.gz enigma2-6f85c322e5a04efcf2f39868baeda974f9ec87aa.zip | |
fix DMX_SET_SOURCE call
Diffstat (limited to 'lib/dvb/demux.cpp')
| -rw-r--r-- | lib/dvb/demux.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/dvb/demux.cpp b/lib/dvb/demux.cpp index 6c783d38..d7fcaccf 100644 --- a/lib/dvb/demux.cpp +++ b/lib/dvb/demux.cpp @@ -50,7 +50,11 @@ 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); + + int n = DMX_SOURCE_FRONT0 + fenum; + int res = ::ioctl(fd, DMX_SET_SOURCE, &n); + if (res) + eDebug("DMX_SET_SOURCE failed! - %m"); ::close(fd); return res; #endif @@ -61,7 +65,8 @@ 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); + int n = DMX_SOURCE_DVR0 + pvrnum; + int res = ::ioctl(fd, DMX_SET_SOURCE, &n); ::close(fd); return res; #endif |
