From da4e4031e6af413d2d4bd400c8a66a5bdc36ea02 Mon Sep 17 00:00:00 2001 From: Lars Hanisch Date: Sun, 14 Mar 2010 16:43:41 +0100 Subject: 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. --- device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'device.c') 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); -- cgit v1.2.3