diff options
author | Lars Hanisch <dvb@flensrocker.de> | 2010-03-21 17:07:37 +0100 |
---|---|---|
committer | Lars Hanisch <dvb@flensrocker.de> | 2010-03-21 17:07:37 +0100 |
commit | 55f5d17729eb7a8bcc5d6ffe1453c92e3a643aec (patch) | |
tree | 7b05741566d84b9574380fe9229ae18d972532a3 | |
parent | 268c006034bf45058c632ebd482076716260011d (diff) | |
download | vdr-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |