aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/demux.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-17 21:11:30 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2008-07-17 21:11:30 +0000
commite4e7f6e8cec4e5e5c6646902a598fed377aa8cf2 (patch)
tree6db1007c695fe0bba335abfd6e2b167f50edddc1 /lib/dvb/demux.cpp
parente035ecc2c81574da1c1dbead323d4fc76ed74a7d (diff)
downloadenigma2-e4e7f6e8cec4e5e5c6646902a598fed377aa8cf2.tar.gz
enigma2-e4e7f6e8cec4e5e5c6646902a598fed377aa8cf2.zip
add own demux policy for dm8000 which now have 5 demux devices one for each
tuner and one for playback
Diffstat (limited to 'lib/dvb/demux.cpp')
-rw-r--r--lib/dvb/demux.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/dvb/demux.cpp b/lib/dvb/demux.cpp
index 6a7e50db..29bbf264 100644
--- a/lib/dvb/demux.cpp
+++ b/lib/dvb/demux.cpp
@@ -76,11 +76,12 @@ RESULT eDVBDemux::setSourceFrontend(int fenum)
{
#if HAVE_DVB_API_VERSION >= 3
int fd = openDemux();
-
int n = DMX_SOURCE_FRONT0 + fenum;
int res = ::ioctl(fd, DMX_SET_SOURCE, &n);
if (res)
eDebug("DMX_SET_SOURCE failed! - %m");
+ else
+ source = fenum;
::close(fd);
return res;
#endif
@@ -93,6 +94,7 @@ RESULT eDVBDemux::setSourcePVR(int pvrnum)
int fd = openDemux();
int n = DMX_SOURCE_DVR0 + pvrnum;
int res = ::ioctl(fd, DMX_SET_SOURCE, &n);
+ source = -1;
::close(fd);
return res;
#endif