use correct pathname for API version < 3. API v3 still needs to be fixed.
authorFelix Domke <tmbinc@elitedvb.net>
Sun, 26 Feb 2006 19:46:28 +0000 (19:46 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Sun, 26 Feb 2006 19:46:28 +0000 (19:46 +0000)
lib/dvb/dvb.cpp

index f8f5a3785d567e97df50a3a6ddb7bcd860301b95..f215b906aef7c77d357a00070397f0a659179fbb 100644 (file)
@@ -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.