summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2010-03-21 17:07:37 +0100
committerLars Hanisch <dvb@flensrocker.de>2010-03-21 17:07:37 +0100
commit55f5d17729eb7a8bcc5d6ffe1453c92e3a643aec (patch)
tree7b05741566d84b9574380fe9229ae18d972532a3
parent268c006034bf45058c632ebd482076716260011d (diff)
downloadvdr-plugin-pvrinput-55f5d17729eb7a8bcc5d6ffe1453c92e3a643aec.tar.gz
vdr-plugin-pvrinput-55f5d17729eb7a8bcc5d6ffe1453c92e3a643aec.tar.bz2
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.
-rw-r--r--device.c2
1 files changed, 1 insertions, 1 deletions
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;