diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-09-29 18:00:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-09-29 18:00:00 +0200 |
commit | d08073815d6d9132f7fb5cd9f82877967dc6b0e4 (patch) | |
tree | f93fbe9f18ed2893d88dc4ce6d01d80804d664da /menu.c | |
parent | 346f4cd1420bb02bd9cec4059385c9922d64fc3f (diff) | |
download | vdr-patch-lnbsharing-d08073815d6d9132f7fb5cd9f82877967dc6b0e4.tar.gz vdr-patch-lnbsharing-d08073815d6d9132f7fb5cd9f82877967dc6b0e4.tar.bz2 |
Version 1.1.11vdr-1.1.11
- Fixed an incomplete initialization of the filter parameters in eit.c (thanks
to Jeremy Hall).
- Fixed the 'newplugin' script for use with the NEWSTRUCT driver (thanks to
Andreas Schultz for reporting this one). If you have already created a plugin
directory and Makefile with 'newplugin', please apply the following patch to it:
-------------------------------------------------------
--- Makefile 2002/06/10 16:24:06 1.4
+++ Makefile 2002/09/17 15:36:36 1.5
@@ -15,7 +15,12 @@
### The directory environment:
+ifdef NEWSTRUCT
+DVBDIR = ../../../../DVB/include
+DEFINES += -DNEWSTRUCT
+else
DVBDIR = ../../../../DVB/ost/include
+endif
VDRDIR = ../../..
VDRINC = $(VDRDIR)/include
LIBDIR = ../../lib
@@ -34,7 +39,7 @@
INCLUDES = -I$(VDRINC) -I$(DVBDIR)
-DEFINES = -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
+DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
### The object files (add further files here):
-------------------------------------------------------
This is the diff for the 'setup' example that comes with VDR, so your line
numbers may be different.
- Added a missing 'public' keyword in device.h (thanks to Martin Hammerschmid).
- Fixed a race condition when starting 'Transfer Mode'.
- Rearranged the remote control key handling to allow plugins to implement
additional types of remote controls (see PLUGINS.html, section "Remote Control").
The previously used files 'keys.conf' and 'keys-pc.conf' have been replaced
by the file 'remote.conf', which holds the key definitions of all remote controls.
- The LIRC remote control keys are now handled just like the keyboard and RCU keys.
This means that you can use the lircd.conf file as is for your remote control,
without the need of editing it to make the key names the same as used in VDR.
When first starting VDR it will go into the "Learning keys" mode and ask you
to press the various keys. The resulting key assignment will be stored in
the file 'remote.conf'.
Since I have no way of testing the LIRC support, I hope I didn't break it in
the process...
- While learning the remote control keys it is now possible to press the 'Menu'
key to skip the definition of keys that are not available on your particular
RC unit.
- Fixed handling DVD subtitles in the SPU decoder (thanks to Andreas Schultz).
- Avoiding restarts due to 'panic level' when switching channels on the primary
device during EPG scan.
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 20 |
1 files changed, 7 insertions, 13 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.208 2002/09/06 14:07:58 kls Exp $ + * $Id: menu.c 1.209 2002/09/29 12:50:47 kls Exp $ */ #include "menu.h" @@ -20,6 +20,7 @@ #include "menuitems.h" #include "plugin.h" #include "recording.h" +#include "remote.h" #include "status.h" #include "videodir.h" @@ -2121,7 +2122,7 @@ cDisplayChannel::cDisplayChannel(int Number, bool Switched) withInfo = !Switched || Setup.ShowInfoOnChSwitch; int EpgLines = withInfo ? 5 : 1; lines = 0; - oldNumber = number = 0; + number = 0; cChannel *channel = Channels.GetByNumber(Number); Interface->Open(Setup.OSDwidth, Setup.ChannelInfoPos ? EpgLines : -EpgLines); if (channel) { @@ -2135,7 +2136,6 @@ cDisplayChannel::cDisplayChannel(eKeys FirstKey) :cOsdObject(true) { group = -1; - oldNumber = cDevice::CurrentChannel(); number = 0; lastTime = time_ms(); int EpgLines = Setup.ShowInfoOnChSwitch ? 5 : 1; @@ -2145,15 +2145,11 @@ cDisplayChannel::cDisplayChannel(eKeys FirstKey) cDisplayChannel::~cDisplayChannel() { - if (number < 0) - Interface->DisplayChannelNumber(oldNumber); Interface->Close(); } void cDisplayChannel::DisplayChannel(const cChannel *Channel) { - if (Channel && Channel->number > 0) - Interface->DisplayChannelNumber(Channel->number); int BufSize = Width() + 1; char buffer[BufSize]; if (Channel && Channel->number > 0) @@ -2231,7 +2227,7 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key) case k0: if (number == 0) { // keep the "Toggle channels" function working - Interface->PutKey(Key); + cRemote::Put(Key); return osEnd; } case k1 ... k9: @@ -2290,7 +2286,7 @@ eOSState cDisplayChannel::ProcessKey(eKeys Key) Channels.SwitchTo(Channels.Get(Channels.GetNextNormal(group))->number); return osEnd; default: if (NORMALKEY(Key) == kUp || NORMALKEY(Key) == kDown || (Key & (k_Repeat | k_Release)) == 0) { - Interface->PutKey(Key); + cRemote::Put(Key); return osEnd; } }; @@ -2397,7 +2393,7 @@ eOSState cDisplayVolume::ProcessKey(eKeys Key) break; case kNone: break; default: if ((Key & k_Release) == 0) { - Interface->PutKey(Key); + cRemote::Put(Key); return osEnd; } } @@ -2441,7 +2437,6 @@ cRecordControl::cRecordControl(cDevice *Device, cTimer *Timer) if (device->AttachReceiver(recorder)) { Recording.WriteSummary(); cStatus::MsgRecording(device, Recording.Name()); - Interface->DisplayRecording(device->CardIndex(), true); } else DELETENULL(recorder); @@ -2487,7 +2482,6 @@ bool cRecordControl::GetEventInfo(void) void cRecordControl::Stop(bool KeepInstant) { if (timer) { - cStatus::MsgRecording(device, NULL); DELETENULL(recorder); timer->SetRecording(false); if ((IsInstant() && !KeepInstant) || (timer->IsSingleEvent() && timer->StopTime() <= time(NULL))) { @@ -2496,7 +2490,7 @@ void cRecordControl::Stop(bool KeepInstant) Timers.Save(); } timer = NULL; - Interface->DisplayRecording(device->CardIndex(), false); + cStatus::MsgRecording(device, NULL); cRecordingUserCommand::InvokeCommand(RUC_AFTERRECORDING, fileName); } } |