From 55f5d17729eb7a8bcc5d6ffe1453c92e3a643aec Mon Sep 17 00:00:00 2001 From: Lars Hanisch Date: Sun, 21 Mar 2010 17:07:37 +0100 Subject: Recognize radio channels on inputType, not on frequency The actual type of a channel is provided by "TV", "RADIO" or "SVIDEO" so we don't need to guess if it's radio or not. --- device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.c b/device.c index 8b336c6..aaba63d 100644 --- a/device.c +++ b/device.c @@ -1295,7 +1295,7 @@ bool cPvrDevice::ProvidesChannel(const cChannel *Channel, int Priority, bool *Ne return false; } } - if (Channel->Frequency() >= 87500 && Channel->Frequency() <= 108000) { + if (inputType == eRadio) { if (radio_dev < 0) { log(pvrDEBUG1, "cPvrDevice::ProvidesChannel: /dev/video%d (%s) has no radio", number, CARDNAME[cardname]); return false; -- cgit v1.2.3