1
0
mirror of https://github.com/rofafor/vdr-plugin-femon.git synced 2023-10-10 13:36:53 +02:00

Fixed device switching.

This commit is contained in:
Rolf Ahrenberg 2010-03-06 22:01:42 +02:00
parent dfc66b3d69
commit 9c085fea51
4 changed files with 7 additions and 3 deletions

View File

@ -395,3 +395,7 @@ VDR Plugin 'femon' Revision History
- Updated for vdr-1.7.13.
- Added a setup option to downscale the OSD size.
- Updated Estonian translation (Thanks to Arthur Konovalov).
2010-xx-xx: Version 1.7.8
- Fixed device switching.

View File

@ -33,7 +33,7 @@ TMPDIR = /tmp
### Make sure that necessary options are included:
include $(VDRDIR)/Make.global
-include $(VDRDIR)/Make.global
### Allow user defined options to overwrite defaults:

View File

@ -18,7 +18,7 @@
#error "VDR-1.7.13 API version or greater is required!"
#endif
static const char VERSION[] = "1.7.7";
static const char VERSION[] = "1.7.8";
static const char DESCRIPTION[] = trNOOP("DVB Signal Information Monitor (OSD)");
static const char MAINMENUENTRY[] = trNOOP("Signal Information");

View File

@ -697,7 +697,7 @@ bool cFemonOsd::DeviceSwitch(int direction)
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
if (channel) {
for (int i = 0; i < cDevice::NumDevices() - 1; i++) {
if (direction) {
if (direction >= 0) {
if (++device >= cDevice::NumDevices())
device = 0;
}