From: Chris Tallon Date: Tue, 25 Mar 2008 20:24:36 +0000 (+0000) Subject: Patch from davep for VDR 1.5 / 1.6 X-Git-Tag: r0-3-0~19 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=a57dcbcead897941e7c2a7079bf077199aa0ddb9;p=vompserver.git Patch from davep for VDR 1.5 / 1.6 --- diff --git a/mvpreceiver.c b/mvpreceiver.c index 3f68ec5..292cc17 100755 --- a/mvpreceiver.c +++ b/mvpreceiver.c @@ -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;