]> git.vomp.tv Git - vompserver.git/commitdiff
Patch from davep for VDR 1.5 / 1.6
authorChris Tallon <chris@vomp.tv>
Tue, 25 Mar 2008 20:24:36 +0000 (20:24 +0000)
committerChris Tallon <chris@vomp.tv>
Tue, 25 Mar 2008 20:24:36 +0000 (20:24 +0000)
mvpreceiver.c

index 3f68ec55b4f46395e9bdc9cbe8f40e2a1b58a662..292cc175fb334aee1bcf2d180c3184f09d0ddae3 100755 (executable)
@@ -2,8 +2,12 @@
 
 MVPReceiver* MVPReceiver::create(cChannel* channel, int priority)
 {
-  bool NeedsDetachReceivers;
-  cDevice* device = cDevice::GetDevice(channel, priority, &NeedsDetachReceivers);
+#if VDRVERSNUM < 10500
+   bool NeedsDetachReceivers;
+   cDevice* device = cDevice::GetDevice(channel, priority, &NeedsDetachReceivers);
+#else
+  cDevice* device = cDevice::GetDevice(channel, priority, true); // last param is live-view
+#endif
 
   if (!device)
   {
@@ -11,12 +15,14 @@ MVPReceiver* MVPReceiver::create(cChannel* channel, int priority)
     return NULL;
   }
 
+#if VDRVERSNUM < 10500
   if (NeedsDetachReceivers)
   {
     Log::getInstance()->log("MVPReceiver", Log::DEBUG, "Needs detach receivers");
 
     // Need to detach other receivers or VDR will shut down??
   }
+#endif
 
   MVPReceiver* m = new MVPReceiver(channel, device);
   return m;