X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/72042565cd6784df72578c3e40c6589d7366ced0..5102456e826ced403dcc2315e565db9a08bf72e2:/lib/dvb/dvb.cpp diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp index d4cc462c..e0df1dc1 100644 --- a/lib/dvb/dvb.cpp +++ b/lib/dvb/dvb.cpp @@ -74,7 +74,11 @@ eDVBAdapterLinux::eDVBAdapterLinux(int nr): m_nr(nr) { struct stat s; char filename[128]; +#if HAVE_DVB_API_VERSION < 3 + sprintf(filename, "/dev/dvb/card%d/frontend%d", m_nr, num_fe); +#else sprintf(filename, "/dev/dvb/adapter%d/frontend%d", m_nr, num_fe); +#endif if (stat(filename, &s)) break; ePtr fe; @@ -92,7 +96,11 @@ eDVBAdapterLinux::eDVBAdapterLinux(int nr): m_nr(nr) { struct stat s; char filename[128]; +#if HAVE_DVB_API_VERSION < 3 + sprintf(filename, "/dev/dvb/card%d/demux%d", m_nr, num_demux); +#else sprintf(filename, "/dev/dvb/adapter%d/demux%d", m_nr, num_demux); +#endif if (stat(filename, &s)) break; ePtr demux; @@ -152,7 +160,11 @@ int eDVBAdapterLinux::exist(int nr) { struct stat s; char filename[128]; +#if HAVE_DVB_API_VERSION < 3 + sprintf(filename, "/dev/dvb/card%d", nr); +#else sprintf(filename, "/dev/dvb/adapter%d", nr); +#endif if (!stat(filename, &s)) return 1; return 0;