From e4e7f6e8cec4e5e5c6646902a598fed377aa8cf2 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 17 Jul 2008 21:11:30 +0000 Subject: add own demux policy for dm8000 which now have 5 demux devices one for each tuner and one for playback --- lib/dvb/demux.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/dvb/demux.cpp') 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 -- cgit v1.2.3