summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorLars Hanisch <dvb@flensrocker.de>2010-03-14 16:43:41 +0100
committerLars Hanisch <dvb@flensrocker.de>2010-03-14 16:43:41 +0100
commitda4e4031e6af413d2d4bd400c8a66a5bdc36ea02 (patch)
tree1911837270e210c2d9601a6d294608e97034ba01 /device.c
parent73d3a8400706a7703153e76463a905c8364a1cfa (diff)
downloadvdr-plugin-pvrinput-da4e4031e6af413d2d4bd400c8a66a5bdc36ea02.tar.gz
vdr-plugin-pvrinput-da4e4031e6af413d2d4bd400c8a66a5bdc36ea02.tar.bz2
add frequency as parameter to externchannelswitch.sh
This is possibly needed, because the SID now have a more important meaning. It is updated from the vdr in relation to the PAT/PMT so it's not a good idea to store important values there. Use the frequency.
Diffstat (limited to 'device.c')
-rw-r--r--device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/device.c b/device.c
index 30069dd..e52b39f 100644
--- a/device.c
+++ b/device.c
@@ -1051,7 +1051,9 @@ bool cPvrDevice::OpenDvr(void) {
}
if (PvrSetup.UseExternChannelSwitchScript) {
- cString cmd = cString::sprintf("%s %d %d %d", *externChannelSwitchScript, currentChannel.Sid(), currentChannel.Number(), number);
+ cString cmd = cString::sprintf("%s %d %d %d %d",
+ *externChannelSwitchScript, currentChannel.Sid(), currentChannel.Number(),
+ number, currentChannel.Frequency());
log(pvrDEBUG1, "OpenDvr: calling %s", *cmd);
if (system(*cmd) < 0) {
log(pvrERROR, "OpenDvr: executing %s failed", *cmd);