From: Felix Domke Date: Sun, 26 Feb 2006 19:46:28 +0000 (+0000) Subject: use correct pathname for API version < 3. API v3 still needs to be fixed. X-Git-Tag: 2.6.0~3980 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/41c90671f123813d65bbcc877fb3659e889e0376?hp=918b10142cc354032c9e5911f7e2c92b5994f86a use correct pathname for API version < 3. API v3 still needs to be fixed. --- diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp index f8f5a378..f215b906 100644 --- a/lib/dvb/dvb.cpp +++ b/lib/dvb/dvb.cpp @@ -949,7 +949,11 @@ RESULT eDVBChannel::playFile(const char *file) THEN DO A REAL FIX HERE! */ /* (this codepath needs to be improved anyway.) */ +#if HAVE_DVB_API_VERSION < 3 + m_pvr_fd_dst = open("/dev/pvr", O_WRONLY); +#else m_pvr_fd_dst = open("/dev/misc/pvr", O_WRONLY); +#endif if (m_pvr_fd_dst < 0) { eDebug("can't open /dev/misc/pvr - you need to buy the new(!) $$$ box! (%m)"); // or wait for the driver to be improved.