mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 13:36:53 +02:00
Renamed compiling switches ('DEBUG' to 'FEMON_DEBUG' and 'NTSC_SYSTEM' to 'FEMON_NTSC').
Enabled preliminary support for the device switching.
This commit is contained in:
parent
0f111eb660
commit
8e57eec535
5
HISTORY
5
HISTORY
@ -156,3 +156,8 @@ VDR Plugin 'femon' Revision History
|
|||||||
|
|
||||||
- Updated Estonian translations (Thanks to Arthur Konovalov).
|
- Updated Estonian translations (Thanks to Arthur Konovalov).
|
||||||
- Added the missing german translations (Thanks to #vdr-portal).
|
- Added the missing german translations (Thanks to #vdr-portal).
|
||||||
|
|
||||||
|
2005-05-20: Version 0.9.0
|
||||||
|
|
||||||
|
- Renamed compiling switches ('DEBUG' to 'FEMON_DEBUG' and 'NTSC_SYSTEM' to 'FEMON_NTSC').
|
||||||
|
- Enabled preliminary support for the device switching.
|
||||||
|
8
Makefile
8
Makefile
@ -44,12 +44,12 @@ INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include
|
|||||||
|
|
||||||
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
|
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
|
||||||
|
|
||||||
ifdef NTSC_SYSTEM
|
ifdef FEMON_NTSC
|
||||||
DEFINES += -DNTSC_SYSTEM
|
DEFINES += -DFEMON_NTSC
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef DEBUG
|
ifdef FEMON_DEBUG
|
||||||
DEFINES += -DDEBUG
|
DEFINES += -DFEMON_DEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all all-redirect
|
.PHONY: all all-redirect
|
||||||
|
4
README
4
README
@ -63,7 +63,7 @@ Ok - Switch between display modes: basic, transponder, stream, AC-3
|
|||||||
Green - Select next audio track
|
Green - Select next audio track
|
||||||
Yellow - Select audio channel: stereo, mono left, mono right
|
Yellow - Select audio channel: stereo, mono left, mono right
|
||||||
Back - Exit plugin
|
Back - Exit plugin
|
||||||
(Left/Right - Switch to next/previous device that provides the current channel)
|
Left/Right - Switch to next/previous device that provides the current channel
|
||||||
|
|
||||||
Installation:
|
Installation:
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ Notes:
|
|||||||
- If the OSD isn't visible, you've configured the OSD height too big or too
|
- If the OSD isn't visible, you've configured the OSD height too big or too
|
||||||
small. Please, try to adjust the variable on the setup page before writing
|
small. Please, try to adjust the variable on the setup page before writing
|
||||||
any bug reports.
|
any bug reports.
|
||||||
- There's a shrinked default OSD height for NTSC users: make NTSC_SYSTEM=1
|
- There's a shrinked default OSD height for NTSC users: make FEMON_NTSC=1
|
||||||
- The device switching feature is still non-functional.
|
- The device switching feature is still non-functional.
|
||||||
|
|
||||||
"Femon - A real womon who lives according to her natural feminine inclinations."
|
"Femon - A real womon who lives according to her natural feminine inclinations."
|
||||||
|
2
femon.h
2
femon.h
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include <vdr/plugin.h>
|
#include <vdr/plugin.h>
|
||||||
|
|
||||||
static const char *VERSION = "0.8.9";
|
static const char *VERSION = "0.9.0";
|
||||||
static const char *DESCRIPTION = "DVB Signal Information Monitor (OSD)";
|
static const char *DESCRIPTION = "DVB Signal Information Monitor (OSD)";
|
||||||
static const char *MAINMENUENTRY = "Signal Information";
|
static const char *MAINMENUENTRY = "Signal Information";
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ cFemonConfig::cFemonConfig(void)
|
|||||||
calcinterval = 20;
|
calcinterval = 20;
|
||||||
syslogoutput = 0;
|
syslogoutput = 0;
|
||||||
showcasystem = 0;
|
showcasystem = 0;
|
||||||
#ifdef NTSC_SYSTEM
|
#ifdef FEMON_NTSC
|
||||||
osdheight = 420;
|
osdheight = 420;
|
||||||
#else
|
#else
|
||||||
osdheight = 480;
|
osdheight = 480;
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#ifndef __FEMONCFG_H
|
#ifndef __FEMONCFG_H
|
||||||
#define __FEMONCFG_H
|
#define __FEMONCFG_H
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef FEMON_DEBUG
|
||||||
#define Dprintf(x...) printf(x);
|
#define Dprintf(x...) printf(x);
|
||||||
#else
|
#else
|
||||||
#define Dprintf(x...) ;
|
#define Dprintf(x...) ;
|
||||||
|
@ -1049,7 +1049,7 @@ eOSState cFemonOsd::ProcessKey(eKeys Key)
|
|||||||
if (device >= 0) {
|
if (device >= 0) {
|
||||||
cChannel *channel = Channels.GetByNumber(cDevice::CurrentChannel());
|
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 (NORMALKEY(Key) == kBlue) {
|
if (NORMALKEY(Key) == kRight) {
|
||||||
if (++device >= cDevice::NumDevices()) device = 0;
|
if (++device >= cDevice::NumDevices()) device = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -1057,8 +1057,11 @@ eOSState cFemonOsd::ProcessKey(eKeys Key)
|
|||||||
}
|
}
|
||||||
if (cDevice::GetDevice(device)->ProvidesChannel(channel)) {
|
if (cDevice::GetDevice(device)->ProvidesChannel(channel)) {
|
||||||
Dprintf("%s(%d) device(%d)\n", __PRETTY_FUNCTION__, Key, device);
|
Dprintf("%s(%d) device(%d)\n", __PRETTY_FUNCTION__, Key, device);
|
||||||
// 1) tune the channel on the new device
|
cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), 0);
|
||||||
// 2) make the new device to actual device
|
cControl::Shutdown();
|
||||||
|
cDevice::GetDevice(device)->SwitchChannel(channel, true);
|
||||||
|
cControl::Launch(new cTransferControl(cDevice::GetDevice(device), channel->Vpid(), channel->Apids(), channel->Dpids(), channel->Spids()));
|
||||||
|
cStatus::MsgChannelSwitch(cDevice::PrimaryDevice(), channel->Number());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user