From a57dcbcead897941e7c2a7079bf077199aa0ddb9 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Tue, 25 Mar 2008 20:24:36 +0000 Subject: [PATCH] Patch from davep for VDR 1.5 / 1.6 --- mvpreceiver.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; -- 2.39.2