summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-05-02 23:13:31 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-05-02 23:13:31 +0000
commit8039b78fdb20c6e9966424417f2733c0cb2fc8d1 (patch)
tree34b6b1be89bffa3e01e6a385abe40992ae0aaecf /pages
parent084b8624f91d7251548842b9ae2441d42dcb95d7 (diff)
downloadvdr-plugin-live-8039b78fdb20c6e9966424417f2733c0cb2fc8d1.tar.gz
vdr-plugin-live-8039b78fdb20c6e9966424417f2733c0cb2fc8d1.tar.bz2
- Fix bug #00283 by using optional 'SkipGap' parameter of
Channels.GetByNumber function.
Diffstat (limited to 'pages')
-rw-r--r--pages/ibox.ecpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/pages/ibox.ecpp b/pages/ibox.ecpp
index 5d6ae48..7ca6069 100644
--- a/pages/ibox.ecpp
+++ b/pages/ibox.ecpp
@@ -47,12 +47,13 @@ using namespace std;
ReadLock channelsLock( Channels );
if (cDevice::CurrentChannel()) {
+ const int SKIP_GAP = 1;
cChannel* Channel = Channels.GetByNumber(cDevice::CurrentChannel());
- cChannel* tmp = Channels.GetByNumber(Channels.GetPrevNormal(cDevice::CurrentChannel()));
+ cChannel* tmp = Channels.GetByNumber(Channels.GetPrevNormal(cDevice::CurrentChannel()), -SKIP_GAP);
if (tmp)
prev_chan = tmp->GetChannelID();
- tmp = Channels.GetByNumber(Channels.GetNextNormal(cDevice::CurrentChannel()));
+ tmp = Channels.GetByNumber(Channels.GetNextNormal(cDevice::CurrentChannel()), SKIP_GAP);
if (tmp)
next_chan = tmp->GetChannelID();