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

Compare commits

...

3 Commits

Author SHA1 Message Date
Rolf Ahrenberg
6ce0ca32bd Fixed device switching priority (Thanks to Andreas Brugger).
Fixed device switching back to the primary device.
2006-06-06 04:20:00 +03:00
Rolf Ahrenberg
74a2a1bbe7 Updated for vdr-1.4.0.
Modified APIVERSION code in Makefile.
Updated german translation (Thanks to Andreas Brachold).
2006-04-30 04:20:00 +03:00
Rolf Ahrenberg
bf85e32d0d Added STRIP option for Makefile (Thanks to Ville Skyttä).
Modified APIVERSION code in Makefile.
2006-04-23 04:20:00 +03:00
7 changed files with 41 additions and 20 deletions

16
HISTORY
View File

@@ -217,3 +217,19 @@ VDR Plugin 'femon' Revision History
2006-04-20: Version 0.9.9
- Updated for vdr-1.3.47.
2006-04-23: Version 0.9.10
- Added STRIP option for Makefile (Thanks to Ville Skytt<74>).
- Modified APIVERSION code in Makefile.
2006-04-30: Version 1.0.0
- Updated for vdr-1.4.0.
- Modified APIVERSION code in Makefile.
- Updated german translation (Thanks to Andreas Brachold).
2006-06-06: Version 1.0.1
- Fixed device switching priority (Thanks to Andreas Brugger).
- Fixed device switching back to the primary device.

View File

@@ -9,6 +9,9 @@
# NTSC on/off
#FEMON_NTSC = 1
# Strip debug symbols? Set eg. to /bin/true if not
STRIP = strip
# The official name of this plugin.
# This name will be used in the '-P...' option of VDR to load the plugin.
# By default the main source file also carries this name.
@@ -36,7 +39,7 @@ TMPDIR = /tmp
### The version number of VDR's plugin API (taken from VDR's "config.h"):
APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
### The name of the distribution archive:
@@ -85,7 +88,7 @@ all: libvdr-$(PLUGIN).so
libvdr-$(PLUGIN).so: $(OBJS)
$(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@
ifndef FEMON_DEBUG
@strip $@
@$(STRIP) $@
endif
@cp $@ $(LIBDIR)/$@.$(APIVERSION)

View File

@@ -15,8 +15,8 @@
#include "femontools.h"
#include "femon.h"
#if defined(APIVERSNUM) && APIVERSNUM < 10347
#error "VDR API version 10347 or greater is required!"
#if defined(APIVERSNUM) && APIVERSNUM < 10400
#error "VDR-1.4.0 API version or greater is required!"
#endif
cPluginFemon::cPluginFemon()

View File

@@ -11,7 +11,7 @@
#include <vdr/plugin.h>
static const char VERSION[] = "0.9.9";
static const char VERSION[] = "1.0.1";
static const char DESCRIPTION[] = "DVB Signal Information Monitor (OSD)";
static const char MAINMENUENTRY[] = "Signal Information";

View File

@@ -30,7 +30,7 @@ TMPDIR = /tmp
### The version number of VDR's plugin API (taken from VDR's "config.h"):
APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
### The name of the distribution archive:

View File

@@ -736,7 +736,7 @@ const tI18nPhrase Phrases[] = {
"Auto", // <20>esky (Czech)
},
{ "None", // English
"None", // Deutsch
"Nichts", // Deutsch
"None", // Slovenski
"None", // Italiano
"None", // Nederlands
@@ -758,7 +758,7 @@ const tI18nPhrase Phrases[] = {
"None", // <20>esky (Czech)
},
{ "Off", // English
"Off", // Deutsch
"Aus", // Deutsch
"Off", // Slovenski
"Off", // Italiano
"Off", // Nederlands
@@ -780,7 +780,7 @@ const tI18nPhrase Phrases[] = {
"Off", // <20>esky (Czech)
},
{ "On", // English
"On", // Deutsch
"Ein", // Deutsch
"On", // Slovenski
"On", // Italiano
"On", // Nederlands
@@ -1506,7 +1506,7 @@ const tI18nPhrase Phrases[] = {
"", // <20>esky (Czech)
},
{ "Audio Coding Mode", // English
"Audio Coding Modus", // Deutsch
"Audiokodierung", // Deutsch
"", // Slovenski
"", // Italiano
"", // Nederlands
@@ -1792,7 +1792,7 @@ const tI18nPhrase Phrases[] = {
"", // <20>esky (Czech)
},
{ "Voice Over (VO)", // English
"<EFBFBD>berlagerte Stimme (VO)", // Deutsch
"<EFBFBD>berlagerte Stimme (VO)", // Deutsch
"", // Slovenski
"", // Italiano
"", // Nederlands
@@ -2056,7 +2056,7 @@ const tI18nPhrase Phrases[] = {
"", // <20>esky (Czech)
},
{ "Analog", // English
"", // Deutsch
"Analog", // Deutsch
"", // Slovenski
"", // Italiano
"", // Nederlands
@@ -2078,7 +2078,7 @@ const tI18nPhrase Phrases[] = {
"", // <20>esky (Czech)
},
{ "Free to Air", // English
"Free to Air", // Deutsch
"Frei empfangbar", // Deutsch
"", // Slovenski
"", // Italiano
"", // Nederlands

View File

@@ -995,24 +995,26 @@ void cFemonOsd::SetAudioTrack(int Index, const char * const *Tracks)
bool cFemonOsd::DeviceSwitch(int direction)
{
Dprintf("%s()\n", __PRETTY_FUNCTION__);
int device = cDevice::ActualDevice()->DeviceNumber();
int device = cDevice::ActualDevice()->DeviceNumber();
direction = sgn(direction);
if (device >= 0) {
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
for (int i = 0; i < cDevice::NumDevices() - 1; i++) {
for (int i = 0; i < cDevice::NumDevices() - 1; i++) {
if (direction) {
if (++device >= cDevice::NumDevices()) device = 0;
if (++device >= cDevice::NumDevices())
device = 0;
}
else {
if (--device < 0) device = cDevice::NumDevices() - 1;
if (--device < 0)
device = cDevice::NumDevices() - 1;
}
if (cDevice::GetDevice(device)->ProvidesChannel(channel)) {
if (cDevice::GetDevice(device)->ProvidesChannel(channel, 0)) {
Dprintf("%s(%d) device(%d)\n", __PRETTY_FUNCTION__, direction, device);
// here should be added some checks, if the device is really available (i.e. not recording)
cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), 0);
cControl::Shutdown();
cDevice::GetDevice(device)->SwitchChannel(channel, true);
// does this work with primary devices ?
if (cDevice::GetDevice(device) == cDevice::PrimaryDevice())
cDevice::GetDevice(device)->ForceTransferMode();
cControl::Launch(new cTransferControl(cDevice::GetDevice(device), channel->Vpid(), channel->Apids(), channel->Dpids(), channel->Spids()));
cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), channel->Number());
return (true);