summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <Klaus (dot) Schmidinger (at) tvdr (dot) de>2013-02-09 15:35:00 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2013-02-09 18:56:41 +0100
commit14bd32b9486980a99ca552ec4eda6a11ab3a286a (patch)
treed845a1325e4cef40875d87d882149e3b5a87fe18
parent889f7deeb4d75553f1d8acde2d2ba93775065a59 (diff)
downloadvdr-patches-14bd32b9486980a99ca552ec4eda6a11ab3a286a.tar.gz
vdr-patches-14bd32b9486980a99ca552ec4eda6a11ab3a286a.tar.bz2
Version 1.7.37
VDR developer version 1.7.37 is now available at ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.37.tar.bz2 A 'diff' against the previous version is available at ftp://ftp.tvdr.de/vdr/Developer/vdr-1.7.36-1.7.37.diff MD5 checksums: 602dc7e678bcfcf075da36344a337562 vdr-1.7.37.tar.bz2 34e953fcffc112f316cbfc1f53915324 vdr-1.7.36-1.7.37.diff WARNING: ======== This is a developer version. Even though I use it in my productive environment. I strongly recommend that you only use it under controlled conditions and for testing and debugging. Approaching version 2.0.0: ========================== If all goes well, there should be no more functional or API changes before the final version 2.0.0. There will just be a few more fixes. From the HISTORY file: - Now also using FindHeader() in cMpeg2Fixer::AdjTref() (pointed out by Sören Moch). - Added missing template for DVBDIR to Make.config.template (reported by Derek Kelly). - The LCARS menu now also works if the OSD has only 1bpp (two colors). - Fixed possible garbage in the remaining time of the LCARS replay display in case the hours change from two to one digit. - Fixed upscaling bitmaps. The last row and column of the scaled bitmap was not filled, which resulted in empty lines between scaled subtitles. - Fixed a leftover line in case a two line subtitle was followed by a one line subtitle on the dvbhddevice in "high level" OSD mode. - Returning 0 from cDvbSdFfDevice::NumProvidedSystems() if option --outputonly is given. - The index file is now closed after initially reading it if it is older than 3600 seconds. - Improved responsiveness during replay when close to the recording's end. - Fixed a leftover progress display in the LCARS main menu when replay of a recording ends while the menu is open, and the live channel has no EPG information. - Fixed possible audio chatter when a recording is replayed to its very end. - Added dependency on 'i18n' to 'install-i18n' in the VDR Makefile (thanks to Tobias Grimm). - Changed several calls to Skins.Message() in vdr.c to Skins.QueueMessage() in order to avoid a black screen while such a message is displayed in case the channel will be switched (reported by Uwe Scheffler). - Updated the Slovakian language texts (thanks to Milan Hrala). - Improved LIRC timing for repeat function. - When pausing live video, the current audio and subtitle tracks are now retained. - Added some notes about plugin Makefiles to PLUGINS.html. - Avoiding an extra key press event if the repeat function kicks in when controlling VDR via the PC keyboard. - The new options "Setup/Miscellaneous/Remote control repeat delay" and "Setup/Miscellaneous/Remote control repeat delta" can be used to adjust the behavior of the remote control in case a key is held pressed down for a while, so that the repeat function kicks in (see MANUAL). The builtin LIRC and KBD remote controls already use these parameters. It is recommended that plugins that implement an interface to any kind of remote controls also use the parameters Setup.RcRepeatDelay and Setup.RcRepeatDelta for the desired purpose, and remove any setup options they might have that serve the same purpose. - cTimer no longer does any special "VFAT" handling to shorten directory names to 40 characters. When a string is used as a directory name for a recording, the maximum length of the directory path, as well as the individual directory names, is now limited to the values specified by the new command line option --dirnames (see man vdr(1) for details). For backwards compatibility the option --vfat is still available and has the same effect as --dirnames=250,40,1. - The macro MaxFileName is now obsolete and may be removed in future versions. Use NAME_MAX directly instead. - There is no more fixed limit to the maximum number of cPixmap objects an OSD can create. However, a particular device may still be unable to create an arbitrary number of pixmaps, due to limited resources. So it's always a good idea to use as few pixmaps as possible. - Fixed formatting and removed some superfluous break statements in vdr.c's command line option switch.
-rw-r--r--CONTRIBUTORS4
-rw-r--r--HISTORY51
-rw-r--r--INSTALL6
-rw-r--r--MANUAL12
-rw-r--r--Make.config.template3
-rw-r--r--Makefile4
-rw-r--r--PLUGINS.html15
-rw-r--r--PLUGINS/src/dvbhddevice/HISTORY4
-rw-r--r--PLUGINS/src/dvbhddevice/dvbhddevice.c18
-rw-r--r--PLUGINS/src/dvbhddevice/dvbhdffdevice.c6
-rw-r--r--PLUGINS/src/dvbhddevice/hdffosd.c10
-rw-r--r--PLUGINS/src/dvbsddevice/HISTORY4
-rw-r--r--PLUGINS/src/dvbsddevice/dvbsddevice.c4
-rw-r--r--PLUGINS/src/dvbsddevice/dvbsdffdevice.c9
-rw-r--r--PLUGINS/src/dvbsddevice/dvbsdffdevice.h3
-rw-r--r--config.c10
-rw-r--r--config.h16
-rw-r--r--cutter.c7
-rw-r--r--device.c9
-rw-r--r--device.h9
-rw-r--r--dvbplayer.c7
-rw-r--r--lirc.c46
-rw-r--r--menu.c6
-rw-r--r--menu.cyVkmHd0
-rw-r--r--osd.c52
-rw-r--r--osd.h17
-rw-r--r--po/ar.po8
-rw-r--r--po/ca_ES.po8
-rw-r--r--po/cs_CZ.po8
-rw-r--r--po/da_DK.po8
-rw-r--r--po/de_DE.po8
-rw-r--r--po/el_GR.po8
-rw-r--r--po/es_ES.po8
-rw-r--r--po/et_EE.po8
-rw-r--r--po/fi_FI.po8
-rw-r--r--po/fr_FR.po8
-rw-r--r--po/hr_HR.po8
-rw-r--r--po/hu_HU.po8
-rw-r--r--po/it_IT.po8
-rw-r--r--po/lt_LT.po8
-rw-r--r--po/mk_MK.po8
-rw-r--r--po/nl_NL.po8
-rw-r--r--po/nn_NO.po8
-rw-r--r--po/pl_PL.po8
-rw-r--r--po/pt_PT.po8
-rw-r--r--po/ro_RO.po8
-rw-r--r--po/ru_RU.po8
-rw-r--r--po/sk_SK.po182
-rw-r--r--po/sl_SI.po8
-rw-r--r--po/sr_SR.po8
-rw-r--r--po/sv_SE.po8
-rw-r--r--po/tr_TR.po8
-rw-r--r--po/uk_UA.po8
-rw-r--r--po/zh_CN.po8
-rw-r--r--recording.c151
-rw-r--r--recording.h6
-rw-r--r--remote.c61
-rw-r--r--remote.h3
-rw-r--r--skinlcars.c46
-rw-r--r--timers.c26
-rw-r--r--timers.h4
-rw-r--r--vdr.120
-rw-r--r--vdr.c116
63 files changed, 832 insertions, 331 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 39bc0d3..6219f2a 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -280,6 +280,7 @@ Uwe Scheffler <linux_dvb@uni.de>
for reporting a problem with frozen live view in conjunction with device bonding
for reporting a problem in handling the PrimaryLimit when requesting a device for
live viewing
+ for reporting a black screen while a "Recording started" message is displayed
Matjaz Thaler <matjaz.thaler@guest.arnes.si>
for improving AC3 decoding when replaying DVDs
@@ -2384,6 +2385,7 @@ Tobias Grimm <tobias.grimm@e-tobi.net>
for avoiding a gcc 4.6 compiler error in the skincurses plugin.
for suggesting to move setting LC_NUMERIC further up to make sure any floating point
numbers use a decimal point
+ for adding dependency on 'i18n' to 'install-i18n' in the VDR Makefile
Helge Lenz <h.lenz@gmx.de>
for reporting a bug in setting the 'Delta' parameter when calling the shutdown
@@ -2735,6 +2737,7 @@ Derek Kelly (user.vdr@gmail.com)
for reporting a problem with getting the maximum short channel name length in case there
are no short names at all
for reporting an incompatible change from DTV_DVBT2_PLP_ID to DTV_STREAM_ID in DVB API 5.8
+ for reporting a missing template for DVBDIR in Make.config.template
Marcel Unbehaun <frostworks@gmx.de>
for adding cRecordingInfo::GetEvent()
@@ -3025,6 +3028,7 @@ Sren Moch <smoch@web.de>
for simplifying calculating the PTS offset in cPtsFixer::Fix() and fixing the overflow
handling of PCR values
for improving cutting MPEG-2 video
+ for pointing out that FindHeader() can also be used in cMpeg2Fixer::AdjTref()
Peter Mnster <pmlists@free.fr>
for fixing 'make install' to not overwrite existing configuration files
diff --git a/HISTORY b/HISTORY
index 11cad93..43eca18 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7533,3 +7533,54 @@ Video Disk Recorder Revision History
- Improved cutting MPEG-2 video (thanks to Sren Moch).
- Reduced the number of retries in cTransfer::Receive() to avoid blocking recordings
in case the primary device can't handle the current live signal.
+
+2013-02-08: Version 1.7.37
+
+- Now also using FindHeader() in cMpeg2Fixer::AdjTref() (pointed out by Sren Moch).
+- Added missing template for DVBDIR to Make.config.template (reported by Derek Kelly).
+- The LCARS menu now also works if the OSD has only 1bpp (two colors).
+- Fixed possible garbage in the remaining time of the LCARS replay display in case the
+ hours change from two to one digit.
+- Fixed upscaling bitmaps. The last row and column of the scaled bitmap was not filled,
+ which resulted in empty lines between scaled subtitles.
+- Fixed a leftover line in case a two line subtitle was followed by a one line
+ subtitle on the dvbhddevice in "high level" OSD mode.
+- Returning 0 from cDvbSdFfDevice::NumProvidedSystems() if option --outputonly is given.
+- The index file is now closed after initially reading it if it is older than 3600 seconds.
+- Improved responsiveness during replay when close to the recording's end.
+- Fixed a leftover progress display in the LCARS main menu when replay of a recording
+ ends while the menu is open, and the live channel has no EPG information.
+- Fixed possible audio chatter when a recording is replayed to its very end.
+- Added dependency on 'i18n' to 'install-i18n' in the VDR Makefile (thanks to Tobias
+ Grimm).
+- Changed several calls to Skins.Message() in vdr.c to Skins.QueueMessage() in order to
+ avoid a black screen while such a message is displayed in case the channel will be
+ switched (reported by Uwe Scheffler).
+- Updated the Slovakian language texts (thanks to Milan Hrala).
+- Improved LIRC timing for repeat function.
+- When pausing live video, the current audio and subtitle tracks are now retained.
+- Added some notes about plugin Makefiles to PLUGINS.html.
+- Avoiding an extra key press event if the repeat function kicks in when controlling
+ VDR via the PC keyboard.
+- The new options "Setup/Miscellaneous/Remote control repeat delay" and
+ "Setup/Miscellaneous/Remote control repeat delta" can be used to adjust the
+ behavior of the remote control in case a key is held pressed down for a while, so
+ that the repeat function kicks in (see MANUAL).
+ The builtin LIRC and KBD remote controls already use these parameters. It is
+ recommended that plugins that implement an interface to any kind of remote controls
+ also use the parameters Setup.RcRepeatDelay and Setup.RcRepeatDelta for the desired
+ purpose, and remove any setup options they might have that serve the same purpose.
+- cTimer no longer does any special "VFAT" handling to shorten directory names to 40
+ characters. When a string is used as a directory name for a recording, the maximum
+ length of the directory path, as well as the individual directory names, is now
+ limited to the values specified by the new command line option --dirnames (see
+ man vdr(1) for details). For backwards compatibility the option --vfat is still
+ available and has the same effect as --dirnames=250,40,1.
+- The macro MaxFileName is now obsolete and may be removed in future versions. Use
+ NAME_MAX directly instead.
+- There is no more fixed limit to the maximum number of cPixmap objects an OSD can
+ create. However, a particular device may still be unable to create an arbitrary
+ number of pixmaps, due to limited resources. So it's always a good idea to use
+ as few pixmaps as possible.
+- Fixed formatting and removed some superfluous break statements in vdr.c's command
+ line option switch.
diff --git a/INSTALL b/INSTALL
index 7654c2a..2cf6be3 100644
--- a/INSTALL
+++ b/INSTALL
@@ -58,8 +58,10 @@ Alternatively you can use the '--lirc' option at runtime.
This option accepts an optional path to the remote control device,
the default of which can be set via the LIRC_DEVICE macro.
-If your video directory will be on a VFAT partition, you can call VDR with
-the command line option '--vfat'.
+If you want to make your video directory available to other machines that
+have limitations on directory name lengths and/or allowed characters in
+directory names, you can call VDR with the command line option '--dirnames'
+(see man vdr(1) for details).
When running, the 'vdr' program writes status information into the
system log file, which is usually /var/log/messages (or /var/log/user.log,
diff --git a/MANUAL b/MANUAL
index 2337d19..72189fa 100644
--- a/MANUAL
+++ b/MANUAL
@@ -926,6 +926,18 @@ Version 1.6
key. Note that the total maximum is also limited by
the "OSD/Channel info time" parameter.
+ Remote control repeat delay = 300
+ The earliest time (in milliseconds) after which the repeat
+ function of the remote control kicks in if a key is held
+ pressed down for a while. If the remote control in use
+ has a repeat delay that is longer than that given in this
+ parameter, that longer delay will prevail.
+ Remote control repeat delta = 100
+ The time (in milliseconds) between two subsequent key
+ presses generated by the remote control's repeat function.
+ If the remote control in use has a repeat delta that is
+ longer than that given in this parameter, that longer delay
+ will prevail.
Initial channel = The channel ID of the channel that shall be tuned to when
VDR starts. Default is empty, which means that it will
tune to the channel that was on before VDR was stopped.
diff --git a/Make.config.template b/Make.config.template
index f37f17f..b02d796 100644
--- a/Make.config.template
+++ b/Make.config.template
@@ -6,7 +6,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Make.config.template 2.16 2013/01/12 13:50:17 kls Exp $
+# $Id: Make.config.template 2.18 2013/02/08 10:31:38 kls Exp $
### The C compiler and options:
@@ -34,6 +34,7 @@ endif
#MANDIR = $(PREFIX)/share/man
#PCDIR = $(PREFIX)/lib/pkgconfig
#RESDIR = $(PREFIX)/share/vdr
+#DVBDIR = /usr/src/v4l-dvb/linux/include/uapi
#VIDEODIR = /srv/vdr/video
#CONFDIR = /var/lib/vdr
diff --git a/Makefile b/Makefile
index 2a5a9b2..47e954f 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Makefile 2.49 2013/01/12 13:45:01 kls Exp $
+# $Id: Makefile 2.50 2013/01/27 14:19:49 kls Exp $
.DELETE_ON_ERROR:
@@ -183,7 +183,7 @@ $(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr.mo: $(PODIR)/%.mo
.PHONY: i18n
i18n: $(I18Nmsgs)
-install-i18n:
+install-i18n: i18n
@mkdir -p $(DESTDIR)$(LOCDIR)
cp -r $(LOCALEDIR)/* $(DESTDIR)$(LOCDIR)
diff --git a/PLUGINS.html b/PLUGINS.html
index 0c7d223..a5713a7 100644
--- a/PLUGINS.html
+++ b/PLUGINS.html
@@ -173,9 +173,15 @@ The <tt>src</tt> directory contains one subdirectory for each plugin, which carr
the name of that plugin (in the above example that would be <tt>hello</tt>).
What's inside the individual source directory of a
plugin is entirely up to the author of that plugin. The only prerequisites are
-that there is a <tt>Makefile</tt> that provides the targets <tt>all</tt> and
+that there is a <tt>Makefile</tt> that provides the targets <tt>all</tt><modified>, <tt>install</tt></modified> and
<tt>clean</tt>, and that a call to <tt>make all</tt> actually produces a dynamically
loadable library file for that plugin (we'll get to the details later).
+<modified>
+The dynamically loadable library file for the plugin shall be located directly under
+the plugin's source directory.
+See the section <a href="#Initializing a new plugin directory">Initializing a new plugin directory</a>
+for how to generate an example Makefile.
+</modified>
<p>
The <tt>lib</tt> directory contains the dynamically loadable libraries of all
available plugins. Note that the names of these files are created by concatenating
@@ -2215,6 +2221,13 @@ Put(uint64 Code, bool Repeat = false, bool Release = false);
</pre></td></tr></table><p>
The other parameters have the same meaning as in the first version of this function.
+<p>
+<modified>
+If your remote control has a repeat function that automatically repeats key events
+if a key is held pressed down for a while, your derived class should use the global
+parameters <tt>Setup.RcRepeatDelay</tt> and <tt>Setup.RcRepeatDelta</tt> to allow
+users to configure the behavior of this function.
+</modified>
<hr><h2><a name="Conditional Access">Conditional Access</a></h2>
diff --git a/PLUGINS/src/dvbhddevice/HISTORY b/PLUGINS/src/dvbhddevice/HISTORY
index 2332019..ceee7da 100644
--- a/PLUGINS/src/dvbhddevice/HISTORY
+++ b/PLUGINS/src/dvbhddevice/HISTORY
@@ -51,3 +51,7 @@ VDR Plugin 'dvbhddevice' Revision History
2013-01-12: Version 0.0.6
- Adapted Makefile to changes introduced in recent VDR versions.
+
+2013-01-24: Version 0.0.7
+
+- Fixed cHdffOsd::SetAreas() (didn't clear the OSD).
diff --git a/PLUGINS/src/dvbhddevice/dvbhddevice.c b/PLUGINS/src/dvbhddevice/dvbhddevice.c
index faf6c5c..4d755f6 100644
--- a/PLUGINS/src/dvbhddevice/dvbhddevice.c
+++ b/PLUGINS/src/dvbhddevice/dvbhddevice.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: dvbhddevice.c 1.19 2013/01/12 14:11:35 kls Exp $
+ * $Id: dvbhddevice.c 1.21 2013/01/29 08:59:36 kls Exp $
*/
#include <vdr/plugin.h>
@@ -12,7 +12,7 @@
#include "menu.h"
#include "setup.h"
-static const char *VERSION = "0.0.6";
+static const char *VERSION = "0.0.7";
static const char *DESCRIPTION = trNOOP("HD Full Featured DVB device");
static const char *MAINMENUENTRY = "dvbhddevice";
@@ -26,6 +26,7 @@ public:
virtual const char *Version(void) { return VERSION; }
virtual const char *Description(void) { return tr(DESCRIPTION); }
virtual void MainThreadHook(void);
+ virtual void Stop(void);
virtual const char *MainMenuEntry(void);
virtual cOsdObject *MainMenuAction(void);
virtual cMenuSetupPage *SetupMenu(void);
@@ -60,6 +61,19 @@ void cPluginDvbhddevice::MainThreadHook(void)
}
}
+void cPluginDvbhddevice::Stop(void)
+{
+ if (gHdffSetup.CecEnabled && gHdffSetup.CecTvOff)
+ {
+ HDFF::cHdffCmdIf * hdffCmdIf = cDvbHdFfDevice::GetHdffCmdHandler();
+ if (hdffCmdIf)
+ {
+ hdffCmdIf->CmdHdmiSendCecCommand(HDFF_CEC_COMMAND_TV_OFF);
+ isyslog("HDFF_CEC_COMMAND_TV_OFF");
+ }
+ }
+}
+
const char *cPluginDvbhddevice::MainMenuEntry(void)
{
return gHdffSetup.HideMainMenu ? NULL : MAINMENUENTRY;
diff --git a/PLUGINS/src/dvbhddevice/dvbhdffdevice.c b/PLUGINS/src/dvbhddevice/dvbhdffdevice.c
index e81d93b..f25d0b7 100644
--- a/PLUGINS/src/dvbhddevice/dvbhdffdevice.c
+++ b/PLUGINS/src/dvbhddevice/dvbhdffdevice.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: dvbhdffdevice.c 1.47 2012/12/29 13:23:22 kls Exp $
+ * $Id: dvbhdffdevice.c 1.48 2013/01/29 08:59:36 kls Exp $
*/
#include <stdint.h>
@@ -96,10 +96,6 @@ cDvbHdFfDevice::~cDvbHdFfDevice()
delete spuDecoder;
if (isHdffPrimary)
{
- if (gHdffSetup.CecEnabled && gHdffSetup.CecTvOff)
- {
- mHdffCmdIf->CmdHdmiSendCecCommand(HDFF_CEC_COMMAND_TV_OFF);
- }
delete mHdffCmdIf;
}
// We're not explicitly closing any device files here, since this sometimes
diff --git a/PLUGINS/src/dvbhddevice/hdffosd.c b/PLUGINS/src/dvbhddevice/hdffosd.c
index 5d55c95..09d370e 100644
--- a/PLUGINS/src/dvbhddevice/hdffosd.c
+++ b/PLUGINS/src/dvbhddevice/hdffosd.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: hdffosd.c 1.18 2012/11/15 09:20:24 kls Exp $
+ * $Id: hdffosd.c 1.20 2013/01/29 08:59:36 kls Exp $
*/
#include "hdffosd.h"
@@ -38,7 +38,6 @@ private:
int mTop;
int mDispWidth;
int mDispHeight;
- bool shown;
bool mChanged;
uint32_t mDisplay;
tFontFace mFontFaces[MAX_NUM_FONTFACES];
@@ -77,7 +76,6 @@ cHdffOsd::cHdffOsd(int Left, int Top, HDFF::cHdffCmdIf * pHdffCmdIf, uint Level)
mHdffCmdIf = pHdffCmdIf;
mLeft = Left;
mTop = Top;
- shown = false;
mChanged = false;
mBitmapPalette = HDFF_INVALID_HANDLE;
@@ -154,11 +152,10 @@ eOsdError cHdffOsd::SetAreas(const tArea *Areas, int NumAreas)
{
//printf("SetAreas %d: %d %d %d %d %d\n", i, Areas[i].x1, Areas[i].y1, Areas[i].x2, Areas[i].y2, Areas[i].bpp);
}
- if (shown)
+ if (mDisplay != HDFF_INVALID_HANDLE)
{
mHdffCmdIf->CmdOsdDrawRectangle(mDisplay, 0, 0, mDispWidth, mDispHeight, 0);
mHdffCmdIf->CmdOsdRenderDisplay(mDisplay);
- shown = false;
}
error = cOsd::SetAreas(Areas, NumAreas);
@@ -180,11 +177,10 @@ void cHdffOsd::SetActive(bool On)
if (GetBitmap(0)) // only flush here if there are already bitmaps
Flush();
}
- else if (shown)
+ else if (mDisplay != HDFF_INVALID_HANDLE)
{
mHdffCmdIf->CmdOsdDrawRectangle(mDisplay, 0, 0, mDispWidth, mDispHeight, 0);
mHdffCmdIf->CmdOsdRenderDisplay(mDisplay);
- shown = false;
}
}
}
diff --git a/PLUGINS/src/dvbsddevice/HISTORY b/PLUGINS/src/dvbsddevice/HISTORY
index 5cca3ec..e1f9854 100644
--- a/PLUGINS/src/dvbsddevice/HISTORY
+++ b/PLUGINS/src/dvbsddevice/HISTORY
@@ -37,3 +37,7 @@ VDR Plugin 'dvbsddevice' Revision History
2013-01-12: Version 0.0.8
- Adapted Makefile to changes introduced in recent VDR versions.
+
+2013-01-25: Version 0.0.9
+
+- Returning 0 from cDvbSdFfDevice::NumProvidedSystems() if option --outputonly is given.
diff --git a/PLUGINS/src/dvbsddevice/dvbsddevice.c b/PLUGINS/src/dvbsddevice/dvbsddevice.c
index 7f91d40..8ebfe2b 100644
--- a/PLUGINS/src/dvbsddevice/dvbsddevice.c
+++ b/PLUGINS/src/dvbsddevice/dvbsddevice.c
@@ -3,14 +3,14 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: dvbsddevice.c 1.8 2013/01/12 14:12:07 kls Exp $
+ * $Id: dvbsddevice.c 1.9 2013/01/25 10:48:50 kls Exp $
*/
#include <getopt.h>
#include <vdr/plugin.h>
#include "dvbsdffdevice.h"
-static const char *VERSION = "0.0.8";
+static const char *VERSION = "0.0.9";
static const char *DESCRIPTION = "SD Full Featured DVB device";
class cPluginDvbsddevice : public cPlugin {
diff --git a/PLUGINS/src/dvbsddevice/dvbsdffdevice.c b/PLUGINS/src/dvbsddevice/dvbsdffdevice.c
index 5601879..f9ff5b3 100644
--- a/PLUGINS/src/dvbsddevice/dvbsdffdevice.c
+++ b/PLUGINS/src/dvbsddevice/dvbsdffdevice.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: dvbsdffdevice.c 2.33 2012/03/11 13:32:42 kls Exp $
+ * $Id: dvbsdffdevice.c 2.34 2013/01/25 10:48:29 kls Exp $
*/
#include "dvbsdffdevice.h"
@@ -362,6 +362,13 @@ bool cDvbSdFfDevice::ProvidesSource(int Source) const
return cDvbDevice::ProvidesSource(Source);
}
+int cDvbSdFfDevice::NumProvidedSystems(void) const
+{
+ if (outputOnly)
+ return 0;
+ return cDvbDevice::NumProvidedSystems();
+}
+
void cDvbSdFfDevice::TurnOffLiveMode(bool LiveView)
{
if (LiveView) {
diff --git a/PLUGINS/src/dvbsddevice/dvbsdffdevice.h b/PLUGINS/src/dvbsddevice/dvbsdffdevice.h
index 79b4e3d..dc55148 100644
--- a/PLUGINS/src/dvbsddevice/dvbsdffdevice.h
+++ b/PLUGINS/src/dvbsddevice/dvbsdffdevice.h
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: dvbsdffdevice.h 2.14 2012/12/03 13:43:55 kls Exp $
+ * $Id: dvbsdffdevice.h 2.15 2013/01/25 10:43:14 kls Exp $
*/
#ifndef __DVBSDFFDEVICE_H
@@ -37,6 +37,7 @@ public:
public:
virtual bool ProvidesSource(int Source) const;
+ virtual int NumProvidedSystems(void) const;
private:
void TurnOffLiveMode(bool LiveView);
protected:
diff --git a/config.c b/config.c
index 8c7b9d1..b422893 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 2.32 2013/01/17 14:50:51 kls Exp $
+ * $Id: config.c 2.34 2013/02/05 11:16:08 kls Exp $
*/
#include "config.h"
@@ -408,6 +408,8 @@ cSetup::cSetup(void)
SVDRPTimeout = 300;
ZapTimeout = 3;
ChannelEntryTimeout = 1000;
+ RcRepeatDelay = 300;
+ RcRepeatDelta = 100;
DefaultPriority = 50;
DefaultLifetime = MAXLIFETIME;
PauseKeyHandling = 2;
@@ -585,7 +587,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "MenuScrollWrap")) MenuScrollWrap = atoi(Value);
else if (!strcasecmp(Name, "MenuKeyCloses")) MenuKeyCloses = atoi(Value);
else if (!strcasecmp(Name, "MarkInstantRecord")) MarkInstantRecord = atoi(Value);
- else if (!strcasecmp(Name, "NameInstantRecord")) Utf8Strn0Cpy(NameInstantRecord, Value, MaxFileName);
+ else if (!strcasecmp(Name, "NameInstantRecord")) Utf8Strn0Cpy(NameInstantRecord, Value, sizeof(NameInstantRecord));
else if (!strcasecmp(Name, "InstantRecordTime")) InstantRecordTime = atoi(Value);
else if (!strcasecmp(Name, "LnbSLOF")) LnbSLOF = atoi(Value);
else if (!strcasecmp(Name, "LnbFrequLo")) LnbFrequLo = atoi(Value);
@@ -610,6 +612,8 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "SVDRPTimeout")) SVDRPTimeout = atoi(Value);
else if (!strcasecmp(Name, "ZapTimeout")) ZapTimeout = atoi(Value);
else if (!strcasecmp(Name, "ChannelEntryTimeout")) ChannelEntryTimeout= atoi(Value);
+ else if (!strcasecmp(Name, "RcRepeatDelay")) RcRepeatDelay = atoi(Value);
+ else if (!strcasecmp(Name, "RcRepeatDelta")) RcRepeatDelta = atoi(Value);
else if (!strcasecmp(Name, "DefaultPriority")) DefaultPriority = atoi(Value);
else if (!strcasecmp(Name, "DefaultLifetime")) DefaultLifetime = atoi(Value);
else if (!strcasecmp(Name, "PauseKeyHandling")) PauseKeyHandling = atoi(Value);
@@ -716,6 +720,8 @@ bool cSetup::Save(void)
Store("SVDRPTimeout", SVDRPTimeout);
Store("ZapTimeout", ZapTimeout);
Store("ChannelEntryTimeout",ChannelEntryTimeout);
+ Store("RcRepeatDelay", RcRepeatDelay);
+ Store("RcRepeatDelta", RcRepeatDelta);
Store("DefaultPriority", DefaultPriority);
Store("DefaultLifetime", DefaultLifetime);
Store("PauseKeyHandling", PauseKeyHandling);
diff --git a/config.h b/config.h
index 807850f..00b2d68 100644
--- a/config.h
+++ b/config.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.h 2.60 2012/12/30 13:08:41 kls Exp $
+ * $Id: config.h 2.64 2013/02/05 11:19:20 kls Exp $
*/
#ifndef __CONFIG_H
@@ -22,13 +22,13 @@
// VDR's own version number:
-#define VDRVERSION "1.7.36"
-#define VDRVERSNUM 10736 // Version * 10000 + Major * 100 + Minor
+#define VDRVERSION "1.7.37"
+#define VDRVERSNUM 10737 // Version * 10000 + Major * 100 + Minor
// The plugin API's version number:
-#define APIVERSION "1.7.36"
-#define APIVERSNUM 10736 // Version * 10000 + Major * 100 + Minor
+#define APIVERSION "1.7.37"
+#define APIVERSNUM 10737 // Version * 10000 + Major * 100 + Minor
// When loading plugins, VDR searches them by their APIVERSION, which
// may be smaller than VDRVERSION in case there have been no changes to
@@ -49,7 +49,7 @@
#define MINOSDHEIGHT 324
#define MAXOSDHEIGHT 1200
-#define MaxFileName 256
+#define MaxFileName NAME_MAX // obsolete - use NAME_MAX directly instead!
#define MaxSkinName 16
#define MaxThemeName 16
@@ -257,7 +257,7 @@ public:
int MenuScrollWrap;
int MenuKeyCloses;
int MarkInstantRecord;
- char NameInstantRecord[MaxFileName];
+ char NameInstantRecord[NAME_MAX];
int InstantRecordTime;
int LnbSLOF;
int LnbFrequLo;
@@ -280,6 +280,8 @@ public:
int SVDRPTimeout;
int ZapTimeout;
int ChannelEntryTimeout;
+ int RcRepeatDelay;
+ int RcRepeatDelta;
int DefaultPriority, DefaultLifetime;
int PausePriority, PauseLifetime;
int PauseKeyHandling;
diff --git a/cutter.c b/cutter.c
index 8a6efc5..edb2824 100644
--- a/cutter.c
+++ b/cutter.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: cutter.c 2.22 2013/01/20 12:04:07 kls Exp $
+ * $Id: cutter.c 2.23 2013/01/23 10:39:27 kls Exp $
*/
#include "cutter.h"
@@ -206,11 +206,8 @@ void cMpeg2Fixer::AdjGopTime(int Offset, int FramesPerSecond)
void cMpeg2Fixer::AdjTref(int TrefOffset)
{
- Reset();
- if (!Find(0x00000100)) {
- esyslog("ERROR: Picture header not found!");
+ if (!FindHeader(0x00000100, "picture"))
return;
- }
int Tref = GetByte() << 2;
int Index1 = GetLastIndex();
uchar Byte2 = GetByte();
diff --git a/device.c b/device.c
index 2678d68..af41641 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c 2.70 2012/11/19 09:59:09 kls Exp $
+ * $Id: device.c 2.71 2013/02/01 12:00:09 kls Exp $
*/
#include "device.h"
@@ -98,6 +98,7 @@ cDevice::cDevice(void)
currentAudioTrack = ttNone;
currentAudioTrackMissingCount = 0;
currentSubtitleTrack = ttNone;
+ keepTracks = false;
liveSubtitle = NULL;
dvbSubtitleConverter = NULL;
autoSelectPreferredSubtitleLanguage = true;
@@ -923,6 +924,8 @@ void cDevice::SetVolume(int Volume, bool Absolute)
void cDevice::ClrAvailableTracks(bool DescriptionsOnly, bool IdsOnly)
{
+ if (keepTracks)
+ return;
if (DescriptionsOnly) {
for (int i = ttNone; i < ttMaxTrackTypes; i++)
*availableTracks[i].description = 0;
@@ -1044,6 +1047,8 @@ bool cDevice::SetCurrentSubtitleTrack(eTrackType Type, bool Manual)
void cDevice::EnsureAudioTrack(bool Force)
{
+ if (keepTracks)
+ return;
if (Force || !availableTracks[currentAudioTrack].id) {
eTrackType PreferredTrack = ttAudioFirst;
int PreferredAudioChannel = 0;
@@ -1075,6 +1080,8 @@ void cDevice::EnsureAudioTrack(bool Force)
void cDevice::EnsureSubtitleTrack(void)
{
+ if (keepTracks)
+ return;
if (Setup.DisplaySubtitles) {
eTrackType PreferredTrack = ttNone;
int LanguagePreference = INT_MAX; // higher than the maximum possible value
diff --git a/device.h b/device.h
index 05b56e9..a625451 100644
--- a/device.h
+++ b/device.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: device.h 2.43 2013/01/03 08:53:06 kls Exp $
+ * $Id: device.h 2.45 2013/02/01 11:54:08 kls Exp $
*/
#ifndef __DEVICE_H
@@ -490,6 +490,7 @@ private:
cMutex mutexCurrentSubtitleTrack;
int currentAudioTrackMissingCount;
bool autoSelectPreferredSubtitleLanguage;
+ bool keepTracks;
int pre_1_3_19_PrivateStream;
protected:
virtual void SetAudioTrackDevice(eTrackType Type);
@@ -539,6 +540,10 @@ public:
void EnsureSubtitleTrack(void);
///< Makes sure one of the preferred language subtitle tracks is selected.
///< Only has an effect if Setup.DisplaySubtitles is on.
+ void SetKeepTracks(bool KeepTracks) { keepTracks = KeepTracks; }
+ ///< Controls whether the current audio and subtitle track settings shall
+ ///< be kept as they currently are, or if they shall be automatically
+ ///< adjusted. This is used when pausing live video.
// Audio facilities
@@ -752,7 +757,7 @@ public:
///< Returns -1 in case of error, otherwise the number of actually
///< processed bytes is returned.
///< PlayTs() shall process the TS packets either as a whole (returning
- ///< n*TS_SIZE) or not at all, returning 0 or -1 and setting 'errno' accordingly).
+ ///< TS_SIZE) or not at all, returning 0 or -1 and setting 'errno' accordingly).
bool Replaying(void) const;
///< Returns true if we are currently replaying.
bool Transferring(void) const;
diff --git a/dvbplayer.c b/dvbplayer.c
index f2cb2d2..241c7ec 100644
--- a/dvbplayer.c
+++ b/dvbplayer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbplayer.c 2.28 2012/06/09 14:37:24 kls Exp $
+ * $Id: dvbplayer.c 2.29 2013/01/27 14:03:16 kls Exp $
*/
#include "dvbplayer.h"
@@ -548,10 +548,11 @@ void cDvbPlayer::Action(void)
}
if (p) {
int w;
+ bool VideoOnly = (dropFrame || playMode != pmPlay && !(playMode == pmSlow && playDir == pdForward)) && DeviceIsPlayingVideo();
if (isPesRecording)
- w = PlayPes(p, pc, playMode != pmPlay && !(playMode == pmSlow && playDir == pdForward) && DeviceIsPlayingVideo());
+ w = PlayPes(p, pc, VideoOnly);
else
- w = PlayTs(p, pc, playMode != pmPlay && !(playMode == pmSlow && playDir == pdForward) && DeviceIsPlayingVideo());
+ w = PlayTs(p, pc, VideoOnly);
if (w > 0) {
p += w;
pc -= w;
diff --git a/lirc.c b/lirc.c
index e3b68db..42f0740 100644
--- a/lirc.c
+++ b/lirc.c
@@ -6,16 +6,13 @@
*
* LIRC support added by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
*
- * $Id: lirc.c 2.1 2011/03/08 15:35:13 kls Exp $
+ * $Id: lirc.c 2.4 2013/02/03 11:23:18 kls Exp $
*/
#include "lirc.h"
#include <netinet/in.h>
#include <sys/socket.h>
-#define REPEATDELAY 350 // ms
-#define REPEATFREQ 100 // ms
-#define REPEATTIMEOUT 500 // ms
#define RECONNECTDELAY 3000 // ms
cLircRemote::cLircRemote(const char *DeviceName)
@@ -63,8 +60,10 @@ void cLircRemote::Action(void)
{
cTimeMs FirstTime;
cTimeMs LastTime;
+ cTimeMs ThisTime;
char buf[LIRC_BUFFER_SIZE];
char LastKeyName[LIRC_KEY_BUF] = "";
+ bool pressed = false;
bool repeat = false;
int timeout = -1;
@@ -94,34 +93,43 @@ void cLircRemote::Action(void)
esyslog("ERROR: unparseable lirc command: %s", buf);
continue;
}
+ int Delta = ThisTime.Elapsed(); // the time between two subsequent LIRC events
+ ThisTime.Set();
if (count == 0) {
- if (strcmp(KeyName, LastKeyName) == 0 && FirstTime.Elapsed() < REPEATDELAY)
+ if (strcmp(KeyName, LastKeyName) == 0 && FirstTime.Elapsed() < (uint)Setup.RcRepeatDelay)
continue; // skip keys coming in too fast
if (repeat)
Put(LastKeyName, false, true);
strcpy(LastKeyName, KeyName);
+ pressed = true;
repeat = false;
FirstTime.Set();
timeout = -1;
}
+ else if (FirstTime.Elapsed() < (uint)Setup.RcRepeatDelay)
+ continue; // repeat function kicks in after a short delay
+ else if (LastTime.Elapsed() < (uint)Setup.RcRepeatDelta)
+ continue; // skip same keys coming in too fast
else {
- if (LastTime.Elapsed() < REPEATFREQ)
- continue; // repeat function kicks in after a short delay (after last key instead of first key)
- if (FirstTime.Elapsed() < REPEATDELAY)
- continue; // skip keys coming in too fast (for count != 0 as well)
repeat = true;
- timeout = REPEATDELAY;
+ timeout = Delta * 10 / 9;
}
- LastTime.Set();
- Put(KeyName, repeat);
+ if (pressed)
+ LastTime.Set();
+ Put(KeyName, repeat);
}
- else if (repeat) { // the last one was a repeat, so let's generate a release
- if (LastTime.Elapsed() >= REPEATTIMEOUT) {
- Put(LastKeyName, false, true);
- repeat = false;
- *LastKeyName = 0;
- timeout = -1;
- }
+ else if (pressed && repeat) { // the last one was a repeat, so let's generate a release
+ Put(LastKeyName, false, true);
+ pressed = false;
+ repeat = false;
+ *LastKeyName = 0;
+ timeout = -1;
+ }
+ else {
+ pressed = false;
+ repeat = false;
+ *LastKeyName = 0;
+ timeout = -1;
}
}
}
diff --git a/menu.c b/menu.c
index d7faa87..ae38984 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 2.74 2013/01/17 14:20:08 kls Exp $
+ * $Id: menu.c 2.76 2013/02/02 14:00:39 kls Exp $
*/
#include "menu.h"
@@ -3186,6 +3186,8 @@ cMenuSetupMisc::cMenuSetupMisc(void)
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$SVDRP timeout (s)"), &data.SVDRPTimeout));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Zap timeout (s)"), &data.ZapTimeout));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Channel entry timeout (ms)"), &data.ChannelEntryTimeout, 0));
+ Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Remote control repeat delay (ms)"), &data.RcRepeatDelay, 0));
+ Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Remote control repeat delta (ms)"), &data.RcRepeatDelta, 0));
Add(new cMenuEditChanItem(tr("Setup.Miscellaneous$Initial channel"), &data.InitialChannel, tr("Setup.Miscellaneous$as before")));
Add(new cMenuEditIntItem( tr("Setup.Miscellaneous$Initial volume"), &data.InitialVolume, -1, 255, tr("Setup.Miscellaneous$as before")));
Add(new cMenuEditBoolItem(tr("Setup.Miscellaneous$Channels wrap"), &data.ChannelsWrap));
@@ -4485,6 +4487,7 @@ cString cReplayControl::fileName;
cReplayControl::cReplayControl(bool PauseLive)
:cDvbPlayerControl(fileName, PauseLive)
{
+ cDevice::PrimaryDevice()->SetKeepTracks(PauseLive);
currentReplayControl = this;
displayReplay = NULL;
marksModified = false;
@@ -4504,6 +4507,7 @@ cReplayControl::cReplayControl(bool PauseLive)
cReplayControl::~cReplayControl()
{
+ cDevice::PrimaryDevice()->SetKeepTracks(false);
Hide();
cStatus::MsgReplaying(this, NULL, fileName, false);
Stop();
diff --git a/menu.cyVkmHd b/menu.cyVkmHd
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/menu.cyVkmHd
diff --git a/osd.c b/osd.c
index 75f13f4..b9fdefd 100644
--- a/osd.c
+++ b/osd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c 2.33 2012/12/15 11:16:41 kls Exp $
+ * $Id: osd.c 2.35 2013/02/08 10:16:47 kls Exp $
*/
#include "osd.h"
@@ -853,12 +853,12 @@ cBitmap *cBitmap::Scaled(double FactorX, double FactorY, bool AntiAlias)
b->SetBpp(8);
b->Replace(*this); // copy palette (must be done *after* SetBpp()!)
int SourceY = 0;
- for (int y = 0; y < b->Height() - 1; y++) {
+ for (int y = 0; y < b->Height(); y++) {
int SourceX = 0;
- int sy = SourceY >> 16;
+ int sy = min(SourceY >> 16, Height() - 2);
uint8_t BlendY = 0xFF - ((SourceY >> 8) & 0xFF);
- for (int x = 0; x < b->Width() - 1; x++) {
- int sx = SourceX >> 16;
+ for (int x = 0; x < b->Width(); x++) {
+ int sx = min(SourceX >> 16, Width() - 2);
uint8_t BlendX = 0xFF - ((SourceX >> 8) & 0xFF);
tColor c1 = b->Blend(GetColor(sx, sy), GetColor(sx + 1, sy), BlendX);
tColor c2 = b->Blend(GetColor(sx, sy + 1), GetColor(sx + 1, sy + 1), BlendX);
@@ -1631,7 +1631,6 @@ cOsd::cOsd(int Left, int Top, uint Level)
savedBitmap = NULL;
numBitmaps = 0;
savedPixmap = NULL;
- numPixmaps = 0;
left = Left;
top = Top;
width = height = 0;
@@ -1653,7 +1652,7 @@ cOsd::~cOsd()
delete bitmaps[i];
delete savedBitmap;
delete savedPixmap;
- for (int i = 0; i < numPixmaps; i++)
+ for (int i = 0; i < pixmaps.Size(); i++)
delete pixmaps[i];
for (int i = 0; i < Osds.Size(); i++) {
if (Osds[i] == this) {
@@ -1702,15 +1701,11 @@ void cOsd::DestroyPixmap(cPixmap *Pixmap)
{
if (isTrueColor) {
LOCK_PIXMAPS;
- for (int i = 1; i < numPixmaps; i++) { // begin at 1 - don't let the background pixmap be destroyed!
+ for (int i = 1; i < pixmaps.Size(); i++) { // begin at 1 - don't let the background pixmap be destroyed!
if (pixmaps[i] == Pixmap) {
pixmaps[0]->MarkViewPortDirty(Pixmap->ViewPort());
delete Pixmap;
- while (i < numPixmaps - 1) {
- pixmaps[i] = pixmaps[i + 1];
- i++;
- }
- numPixmaps--;
+ pixmaps[i] = NULL;
return;
}
}
@@ -1722,12 +1717,13 @@ cPixmap *cOsd::AddPixmap(cPixmap *Pixmap)
{
if (Pixmap) {
LOCK_PIXMAPS;
- if (numPixmaps < MAXOSDPIXMAPS)
- return pixmaps[numPixmaps++] = Pixmap;
- else
- esyslog("ERROR: too many OSD pixmaps requested (maximum is %d)", MAXOSDPIXMAPS);
+ for (int i = 0; i < pixmaps.Size(); i++) {
+ if (!pixmaps[i])
+ return pixmaps[i] = Pixmap;
+ }
+ pixmaps.Append(Pixmap);
}
- return NULL;
+ return Pixmap;
}
cPixmapMemory *cOsd::RenderPixmaps(void)
@@ -1737,12 +1733,13 @@ cPixmapMemory *cOsd::RenderPixmaps(void)
LOCK_PIXMAPS;
// Collect overlapping dirty rectangles:
cRect d;
- for (int i = 0; i < numPixmaps; i++) {
- cPixmap *pm = pixmaps[i];
- if (!pm->DirtyViewPort().IsEmpty()) {
- if (d.IsEmpty() || d.Intersects(pm->DirtyViewPort())) {
- d.Combine(pm->DirtyViewPort());
- pm->SetClean();
+ for (int i = 0; i < pixmaps.Size(); i++) {
+ if (cPixmap *pm = pixmaps[i]) {
+ if (!pm->DirtyViewPort().IsEmpty()) {
+ if (d.IsEmpty() || d.Intersects(pm->DirtyViewPort())) {
+ d.Combine(pm->DirtyViewPort());
+ pm->SetClean();
+ }
}
}
}
@@ -1758,10 +1755,11 @@ cPixmapMemory *cOsd::RenderPixmaps(void)
Pixmap->Clear();
// Render the individual pixmaps into the resulting pixmap:
for (int Layer = 0; Layer < MAXPIXMAPLAYERS; Layer++) {
- for (int i = 0; i < numPixmaps; i++) {
- cPixmap *pm = pixmaps[i];
- if (pm->Layer() == Layer)
+ for (int i = 0; i < pixmaps.Size(); i++) {
+ if (cPixmap *pm = pixmaps[i]) {
+ if (pm->Layer() == Layer)
Pixmap->DrawPixmap(pm, d);
+ }
}
}
#ifdef DebugDirty
diff --git a/osd.h b/osd.h
index 0084caa..7eb8db6 100644
--- a/osd.h
+++ b/osd.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.h 2.18 2012/12/03 13:49:02 kls Exp $
+ * $Id: osd.h 2.19 2013/02/08 09:47:56 kls Exp $
*/
#ifndef __OSD_H
@@ -701,7 +701,6 @@ public:
};
#define MAXOSDAREAS 16
-#define MAXOSDPIXMAPS 64
/// The cOsd class is the interface to the "On Screen Display".
/// An actual output device needs to derive from this class and implement
@@ -725,8 +724,7 @@ private:
cBitmap *bitmaps[MAXOSDAREAS];
int numBitmaps;
cPixmapMemory *savedPixmap;
- cPixmap *pixmaps[MAXOSDPIXMAPS];
- int numPixmaps;
+ cVector<cPixmap *> pixmaps;
int left, top, width, height;
uint level;
bool active;
@@ -755,14 +753,10 @@ protected:
virtual void SetActive(bool On) { active = On; }
///< Sets this OSD to be the active one.
///< A derived class must call cOsd::SetActive(On).
- const cPixmap * const *Pixmaps(void) { return pixmaps; }
- ///< Returns the list of currently active pixmaps in this OSD.
- int NumPixmaps(void) { return numPixmaps; }
- ///< Returns the number of currently active pixmaps in this OSD.
cPixmap *AddPixmap(cPixmap *Pixmap);
///< Adds the given Pixmap to the list of currently active pixmaps in this OSD.
- ///< Returns Pixmap if the operation was successful, or NULL if the maximum
- ///< number of pixmaps has been exceeded.
+ ///< Returns Pixmap if the operation was successful, or NULL if for some reason
+ ///< the pixmap could not be added to the list.
///< A derived class that implements its own cPixmap class must call AddPixmap()
///< in order to add a newly created pixmap to the OSD's list of pixmaps.
cPixmapMemory *RenderPixmaps(void);
@@ -824,7 +818,8 @@ public:
///< The caller must not delete the returned object, it will be deleted when
///< the OSD is deleted. DestroyPixmap() can be called if a pixmap shall be
///< destroyed before the OSD is deleted.
- ///< If this is not a true color OSD, this function returns NULL.
+ ///< If this is not a true color OSD, or if the pixmap could not be created
+ ///< due to limited resources, this function returns NULL.
virtual void DestroyPixmap(cPixmap *Pixmap);
///< Destroys the given Pixmap, which has previously been created by a call to
///< CreatePixmap(). When the OSD is deleted, all pixmaps are destroyed
diff --git a/po/ar.po b/po/ar.po
index 946cc66..a44917d 100644
--- a/po/ar.po
+++ b/po/ar.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.7.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-10-16 11:16-0400\n"
"Last-Translator: Osama Alrawab <alrawab@hotmail.com>\n"
"Language-Team: Arabic <ar@li.org>\n"
@@ -1154,6 +1154,12 @@ msgstr ""
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "مدة انتهاء مدخلات القناة بالدقيقة"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "القناة الاساسية"
diff --git a/po/ca_ES.po b/po/ca_ES.po
index 437542f..f1a24fc 100644
--- a/po/ca_ES.po
+++ b/po/ca_ES.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-03-02 19:02+0100\n"
"Last-Translator: Luca Olivetti <luca@ventoso.org>\n"
"Language-Team: Catalan <vdr@linuxtv.org>\n"
@@ -1131,6 +1131,12 @@ msgstr "Temps d'espera Zap (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Temps d'introducci canal (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Canal inicial"
diff --git a/po/cs_CZ.po b/po/cs_CZ.po
index b0d5b7d..a4f2515 100644
--- a/po/cs_CZ.po
+++ b/po/cs_CZ.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.7.14\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2010-05-06 11:00+0200\n"
"Last-Translator: Radek Šťastný <dedkus@gmail.com>\n"
"Language-Team: Czech <vdr@linuxtv.org>\n"
@@ -1130,6 +1130,12 @@ msgstr "Časový limit Zap (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Prodleva při volbě kanálu (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Kanál po spuštění"
diff --git a/po/da_DK.po b/po/da_DK.po
index 6ca6c86..511e03f 100644
--- a/po/da_DK.po
+++ b/po/da_DK.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Mogens Elneff <mogens@elneff.dk>\n"
"Language-Team: Danish <vdr@linuxtv.org>\n"
@@ -1128,6 +1128,12 @@ msgstr "Zap timeout (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Kanal adgang timeout (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Kanal ved opstart"
diff --git a/po/de_DE.po b/po/de_DE.po
index 5476d9c..77af04a 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2010-01-16 16:46+0100\n"
"Last-Translator: Klaus Schmidinger <kls@tvdr.de>\n"
"Language-Team: German <vdr@linuxtv.org>\n"
@@ -1128,6 +1128,12 @@ msgstr "Mindestzeit fr Kanalhistorie (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Zeitlimit fr Kanaleingabe (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr "Fernbedienung Wiederholverzgerung (ms)"
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr "Fernbedienung Wiederholintervall (ms)"
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Kanal beim Einschalten"
diff --git a/po/el_GR.po b/po/el_GR.po
index bf8933e..d0c1c7d 100644
--- a/po/el_GR.po
+++ b/po/el_GR.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Dimitrios Dimitrakos <mail@dimitrios.de>\n"
"Language-Team: Greek <vdr@linuxtv.org>\n"
@@ -1128,6 +1128,12 @@ msgstr " ()"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr ""
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr ""
diff --git a/po/es_ES.po b/po/es_ES.po
index 6a6f4e4..9e120e7 100644
--- a/po/es_ES.po
+++ b/po/es_ES.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-03-02 19:02+0100\n"
"Last-Translator: Luca Olivetti <luca@ventoso.org>\n"
"Language-Team: Spanish <vdr@linuxtv.org>\n"
@@ -1129,6 +1129,12 @@ msgstr "Considerar canal como visto (sg)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Tiempo introduccin canal (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Canal inicial"
diff --git a/po/et_EE.po b/po/et_EE.po
index 1d34236..7382a01 100644
--- a/po/et_EE.po
+++ b/po/et_EE.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Arthur Konovalov <artlov@gmail.com>\n"
"Language-Team: Estonian <vdr@linuxtv.org>\n"
@@ -1128,6 +1128,12 @@ msgstr "Kanalivahetuse ooteaeg (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Kanali sisestamise ajalimiit (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Kanal käivitamisel"
diff --git a/po/fi_FI.po b/po/fi_FI.po
index 9a9fa74..164a376 100644
--- a/po/fi_FI.po
+++ b/po/fi_FI.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2007-08-15 15:52+0200\n"
"Last-Translator: Rolf Ahrenberg <rahrenbe@cc.hut.fi>\n"
"Language-Team: Finnish <vdr@linuxtv.org>\n"
@@ -1131,6 +1131,12 @@ msgstr "Kanavavalinnan odotusaika (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Kanavasyötteen odotusaika (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Kanava käynnistettäessä"
diff --git a/po/fr_FR.po b/po/fr_FR.po
index 55983d4..186b6e1 100644
--- a/po/fr_FR.po
+++ b/po/fr_FR.po
@@ -13,7 +13,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-02-27 18:14+0100\n"
"Last-Translator: Jean-Claude Repetto <jc@repetto.org>\n"
"Language-Team: French <vdr@linuxtv.org>\n"
@@ -1134,6 +1134,12 @@ msgstr "Prise en compte chane (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Entre chane timeout (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Chane initiale"
diff --git a/po/hr_HR.po b/po/hr_HR.po
index b7b2d4f..af63cc1 100644
--- a/po/hr_HR.po
+++ b/po/hr_HR.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-03-17 19:00+0100\n"
"Last-Translator: Adrian Caval <anrxc@sysphere.org>\n"
"Language-Team: Croatian <vdr@linuxtv.org>\n"
@@ -1130,6 +1130,12 @@ msgstr "Zap istjee (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Upis kanala istjee (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Poetni kanal"
diff --git a/po/hu_HU.po b/po/hu_HU.po
index 919d3b2..a2cc9d0 100644
--- a/po/hu_HU.po
+++ b/po/hu_HU.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2012-01-02 11:54+0200\n"
"Last-Translator: Istvn Fley <ifuley@tigercomp.ro>\n"
"Language-Team: Hungarian <vdr@linuxtv.org>\n"
@@ -1132,6 +1132,12 @@ msgstr "Adsvlts ideje (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Csatornavlts timeout (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Csatorna indulskor"
diff --git a/po/it_IT.po b/po/it_IT.po
index 8df7150..1425dc9 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2012-12-22 19:00+0100\n"
"Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n"
"Language-Team: Italian <vdr@linuxtv.org>\n"
@@ -1135,6 +1135,12 @@ msgstr "Scadenza Zapping (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Scadenza voce canale (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Canale iniziale"
diff --git a/po/lt_LT.po b/po/lt_LT.po
index 931900f..f1986eb 100644
--- a/po/lt_LT.po
+++ b/po/lt_LT.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.7.16\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2010-10-30 11:55+0200\n"
"Last-Translator: Valdemaras Pipiras <varas@ambernet.lt>\n"
"Language-Team: Lithuanian <vdr@linuxtv.org>\n"
@@ -1128,6 +1128,12 @@ msgstr "Kanalo perjungimo užlaikymas (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Užlaikymas (ms) kanalo įvedimui"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Kanalas įjungimo metu"
diff --git a/po/mk_MK.po b/po/mk_MK.po
index b7570b6..b6c2d54 100644
--- a/po/mk_MK.po
+++ b/po/mk_MK.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR-1.7.14\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2012-11-19 15:18+0100\n"
"Last-Translator: Dimitar Petrovski <dimeptr@gmail.com>\n"
"Language-Team: Macedonian <en@li.org>\n"
@@ -1129,6 +1129,12 @@ msgstr "Зап тајмаут (сек)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Тајмаут за внес на канал (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Почетен канал"
diff --git a/po/nl_NL.po b/po/nl_NL.po
index a7dbadf..ab16a2a 100644
--- a/po/nl_NL.po
+++ b/po/nl_NL.po
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-02-26 17:20+0100\n"
"Last-Translator: Johan Schuring <johan.schuring@vetteblei.nl>\n"
"Language-Team: Dutch <vdr@linuxtv.org>\n"
@@ -1132,6 +1132,12 @@ msgstr "Zap timeout (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Tijdsduur kanaalinvoer (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Opstartkanaal"
diff --git a/po/nn_NO.po b/po/nn_NO.po
index aeeb0bb..664018b 100644
--- a/po/nn_NO.po
+++ b/po/nn_NO.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Truls Slevigen <truls@slevigen.no>\n"
"Language-Team: Norwegian Nynorsk <vdr@linuxtv.org>\n"
@@ -1129,6 +1129,12 @@ msgstr ""
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr ""
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr ""
diff --git a/po/pl_PL.po b/po/pl_PL.po
index c4e36d7..1580b0b 100644
--- a/po/pl_PL.po
+++ b/po/pl_PL.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-03-09 12:59+0100\n"
"Last-Translator: Michael Rakowski <mrak@gmx.de>\n"
"Language-Team: Polish <vdr@linuxtv.org>\n"
@@ -1129,6 +1129,12 @@ msgstr "Czas oczekiwania na zap (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Min czas wejcia do kanau"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Pocztkowy kana"
diff --git a/po/pt_PT.po b/po/pt_PT.po
index 44f1035..9dec287 100644
--- a/po/pt_PT.po
+++ b/po/pt_PT.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.7.15\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2010-03-28 22:49+0100\n"
"Last-Translator: Cris Silva <hudokkow@gmail.com>\n"
"Language-Team: Portuguese <vdr@linuxtv.org>\n"
@@ -1129,6 +1129,12 @@ msgstr "Tempo de espera entre mudana de canais (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Tempo de espera ao mudar de canal (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Canal inicial"
diff --git a/po/ro_RO.po b/po/ro_RO.po
index ffdb44c..4087af8 100644
--- a/po/ro_RO.po
+++ b/po/ro_RO.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.7.12\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2012-11-05 01:28+0100\n"
"Last-Translator: Lucian Muresan <lucianm@users.sourceforge.net>\n"
"Language-Team: Romanian <vdr@linuxtv.org>\n"
@@ -1131,6 +1131,12 @@ msgstr "Interval zapping (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Timeout la introducerea canalului (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Canalul de pornire"
diff --git a/po/ru_RU.po b/po/ru_RU.po
index 42bdcc9..9bcf571 100644
--- a/po/ru_RU.po
+++ b/po/ru_RU.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-12-15 14:37+0100\n"
"Last-Translator: Oleg Roitburd <oleg@roitburd.de>\n"
"Language-Team: Russian <vdr@linuxtv.org>\n"
@@ -1129,6 +1129,12 @@ msgstr " ()"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr " (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr " "
diff --git a/po/sk_SK.po b/po/sk_SK.po
index 118747a..6aea45c 100644
--- a/po/sk_SK.po
+++ b/po/sk_SK.po
@@ -1,14 +1,14 @@
# VDR language source file.
# Copyright (C) 2008 Klaus Schmidinger <kls@tvdr.de>
# This file is distributed under the same license as the VDR package.
-# Milan Hrala <hrala.milan@gmail.com>, 2011
+# Milan Hrala <hrala.milan@gmail.com>, 2011, 2013
#
msgid ""
msgstr ""
"Project-Id-Version: VDR 1.7.16\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
-"PO-Revision-Date: 2011-02-15 16:29+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
+"PO-Revision-Date: 2013-01-29 22:39+0100\n"
"Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n"
"Language-Team: Slovak <vdr@linuxtv.org>\n"
"Language: sk\n"
@@ -74,7 +74,7 @@ msgid "Rolloff"
msgstr "Rolloff"
msgid "PlpId"
-msgstr ""
+msgstr "PlpId"
msgid "Starting EPG scan"
msgstr "Zana prehadva EPG"
@@ -329,50 +329,50 @@ msgstr "Slovensky"
#. TRANSLATORS: The 3-letter code of the language
msgid "LanguageCode$eng"
-msgstr "slv"
+msgstr "slk"
msgid "Phase 1: Detecting RC code type"
-msgstr "Fza 1: Detekcia typu kdu"
+msgstr "Fza 1: Detekcia typu diakovho ovldania"
msgid "Press any key on the RC unit"
-msgstr "Stlate ubovoln klvesu ovldania"
+msgstr "Stlate ubovoln tlaidlo ovldania"
msgid "RC code detected!"
-msgstr "Kd bol zisten!"
+msgstr "Bol zosnman kd diakovho ovldania!"
msgid "Do not press any key..."
msgstr "Nestlajte iadne klvesy..."
msgid "Phase 2: Learning specific key codes"
-msgstr "Fza 2: Urenie konkrtneho kdu klves"
+msgstr "Fza 2: Urenie funkcie tlaidiel"
#, c-format
msgid "Press key for '%s'"
-msgstr "Stlate klvesu pre '%s'"
+msgstr "Stlate tlaidlo pre funkciu '%s'"
msgid "Press 'Up' to confirm"
-msgstr "Pre potvrdenie stlate klvesu 'Hore'"
+msgstr "Pre potvrdenie stlate tlaidlo 'Hore'"
msgid "Press 'Down' to continue"
-msgstr "Pokraujete stlaenm klvesy 'Dole' "
+msgstr "Pokraujete stlaenm tlaidla 'Dole' "
msgid "(press 'Up' to go back)"
-msgstr "(Vrtite sa stlaenm klvesy 'hore')"
+msgstr "(Vrtite sa stlaenm tlaidla 'hore')"
msgid "(press 'Down' to end key definition)"
-msgstr "(Definovanie tlatok ukonte stlaenm klvesy 'dole')"
+msgstr "(Definovanie tlaidiel ukonte stlaenm tlaidla 'dole')"
msgid "(press 'Menu' to skip this key)"
-msgstr "(stlaenm 'Menu' preskote definciu klvesy)"
+msgstr "(stlaenm 'Menu' preskote definciu tlaidla)"
msgid "Learning Remote Control Keys"
-msgstr "Urenie kdu diakovho ovldania"
+msgstr "Programovanie diakovho ovldania"
msgid "Phase 3: Saving key codes"
-msgstr "Fza 3: Uloenie kdu"
+msgstr "Fza 3: Uloenie kdu tlaidiel"
msgid "Press 'Up' to save, 'Down' to cancel"
-msgstr "Stlaenm 'hore' ulote, 'Dole' zrute"
+msgstr "Nastavenie stlaenm tlaidla 'hore' ulote, 'Dole' zrute"
msgid "Key$Up"
msgstr "Hore"
@@ -411,13 +411,13 @@ msgid "Key$Info"
msgstr "Info"
msgid "Key$Play/Pause"
-msgstr ""
+msgstr "Prehra/Pozastavi"
msgid "Key$Play"
msgstr "Prehra"
msgid "Key$Pause"
-msgstr "Prerui"
+msgstr "Pozastavi"
msgid "Key$Stop"
msgstr "Zastavi"
@@ -432,10 +432,10 @@ msgid "Key$FastRew"
msgstr "Pretoi sp"
msgid "Key$Next"
-msgstr "alej"
+msgstr "Nasledujci"
msgid "Key$Prev"
-msgstr "Sp"
+msgstr "Predchdzajci"
msgid "Key$Power"
msgstr "Vypna"
@@ -465,7 +465,7 @@ msgid "Key$Subtitles"
msgstr "Titulky"
msgid "Key$Schedule"
-msgstr "Program (EPG)"
+msgstr "Televzny program"
msgid "Key$Channels"
msgstr "Kanly"
@@ -519,7 +519,7 @@ msgid "encrypted"
msgstr "kdovan"
msgid "Edit channel"
-msgstr "pravy kanlu"
+msgstr "Prispsobi kanl"
msgid "Name"
msgstr "Nzov"
@@ -564,13 +564,13 @@ msgid "Sid"
msgstr "Sid"
msgid "Channel settings are not unique!"
-msgstr "Nastavenia kanlu nie s obyajn!"
+msgstr "Nastavenia kanlu nie s vnimon!"
msgid "Channels"
msgstr "Kanly"
msgid "Button$Edit"
-msgstr "pravy"
+msgstr "Upravi"
msgid "Button$New"
msgstr "Nov"
@@ -616,7 +616,7 @@ msgid "Edit timer"
msgstr "prava plnu nahrvania"
msgid "Active"
-msgstr "V innosti"
+msgstr "Aktvny"
msgid "Channel"
msgstr "Kanl"
@@ -625,10 +625,10 @@ msgid "Day"
msgstr "De"
msgid "Start"
-msgstr "Zaiatok"
+msgstr "Zana"
msgid "Stop"
-msgstr "Koniec"
+msgstr "Kon"
msgid "VPS"
msgstr "VPS"
@@ -646,13 +646,13 @@ msgid "Button$Folder"
msgstr "Zloka"
msgid "Button$Single"
-msgstr ""
+msgstr "bez opakovania"
msgid "Button$Repeating"
-msgstr ""
+msgstr "s opakovanm"
msgid "First day"
-msgstr "Prv de"
+msgstr "Odo da"
msgid "Select folder"
msgstr "Vybra zloku"
@@ -685,13 +685,13 @@ msgid "Button$Switch"
msgstr "Prepn"
msgid "What's on now?"
-msgstr "o ide?"
+msgstr "o ide aktulne?"
msgid "What's on next?"
msgstr "o nasleduje?"
msgid "Button$Next"
-msgstr "alej"
+msgstr "Nasleduje"
msgid "Button$Now"
msgstr "Teraz"
@@ -730,7 +730,7 @@ msgid "Button$Play"
msgstr "Prehra"
msgid "Button$Rewind"
-msgstr "Na zaiatok"
+msgstr "Od zaiatku"
msgid "Recordings"
msgstr "Nahrvky"
@@ -745,7 +745,7 @@ msgid "Delete recording?"
msgstr "Zmaza nahrvku?"
msgid "Recording is being edited - really delete?"
-msgstr ""
+msgstr "Nahrvka sa upravuje - Naozaj zmaza?"
msgid "Error while deleting recording!"
msgstr "Pri vymazvan nahrvky prilo k chybe!"
@@ -835,7 +835,7 @@ msgid "Setup.OSD$Scroll pages"
msgstr "Rolova strany"
msgid "Setup.OSD$Scroll wraps"
-msgstr "Z konca na zaiatok"
+msgstr "Rolova cyklicky"
msgid "Setup.OSD$Menu key closes"
msgstr "Klvesa Menu zaviera"
@@ -847,25 +847,25 @@ msgid "Setup.OSD$Folders in timer menu"
msgstr "Zloky v menu plnovaa"
msgid "Setup.OSD$Number keys for characters"
-msgstr "seln tlaidl pre znaky"
+msgstr "Psa znaky selnmi tlaidlami"
msgid "Setup.OSD$Color key 0"
-msgstr ""
+msgstr "Farba klvesy 0"
msgid "Setup.OSD$Color key 1"
-msgstr ""
+msgstr "Farba klvesy 1"
msgid "Setup.OSD$Color key 2"
-msgstr ""
+msgstr "Farba klvesy 2"
msgid "Setup.OSD$Color key 3"
-msgstr ""
+msgstr "Farba klvesy 3"
msgid "EPG"
msgstr "EPG"
msgid "Button$Scan"
-msgstr "Snma"
+msgstr "Skenova"
msgid "Setup.EPG$EPG scan timeout (h)"
msgstr "asov limit pre snmanie EPG (h)"
@@ -880,7 +880,7 @@ msgid "Setup.EPG$Set system time"
msgstr "Nastavi systmov as"
msgid "Setup.EPG$Use time from transponder"
-msgstr "Poui as z kanlu"
+msgstr "Poui as z transpondru"
#. TRANSLATORS: note the plural!
msgid "Setup.EPG$Preferred languages"
@@ -930,7 +930,7 @@ msgid "Setup.DVB$Primary DVB interface"
msgstr "Hlavn DVB rozhranie"
msgid "Setup.DVB$Standard compliance"
-msgstr ""
+msgstr "Kompatibiln norma"
msgid "Setup.DVB$Video format"
msgstr "Formt videa"
@@ -985,10 +985,10 @@ msgstr "Horn frekvencia LNB (MHz)"
#, c-format
msgid "Setup.LNB$Device %d connected to sat cable"
-msgstr ""
+msgstr "Zariadenie %d je pripojen na sat. kbel"
msgid "Setup.LNB$own"
-msgstr ""
+msgstr "vlastn"
msgid "CAM reset"
msgstr "Resetnutie CAMu"
@@ -1021,13 +1021,13 @@ msgid "Can't reset CAM!"
msgstr "CAM modul nejde retartova!"
msgid "do not pause live video"
-msgstr "nepreruova iv vysielanie"
+msgstr "nepozastavova iv vysielanie"
msgid "confirm pause live video"
-msgstr "potvrdi preruenie ivho vysielania"
+msgstr "potvrdi pozastavenie ivho vysielania"
msgid "pause live video"
-msgstr "prerui iv vysielanie"
+msgstr "pozastavi iv vysielanie"
msgid "confirm"
msgstr "overi"
@@ -1078,7 +1078,7 @@ msgid "Setup.Recording$Instant rec. time (min)"
msgstr "Dka okamitho nahrvania (min)"
msgid "Setup.Recording$present event"
-msgstr ""
+msgstr "sasn udalos"
msgid "Setup.Recording$Max. video file size (MB)"
msgstr "Maximlna vekos nahrvky (MB)"
@@ -1099,34 +1099,40 @@ msgid "Setup.Replay$Show replay mode"
msgstr "Zobrazi spsob prehrvania"
msgid "Setup.Replay$Show remaining time"
-msgstr ""
+msgstr "Zobrazi zostvajci as"
msgid "Setup.Replay$Progress display time (s)"
-msgstr ""
+msgstr "as zobrazenia ukazovatea priebehu (s)"
msgid "Setup.Replay$Pause replay when setting mark"
-msgstr ""
+msgstr "Pozastavi prehrvanie pri stanoven znaky"
msgid "Setup.Replay$Resume ID"
-msgstr "ID obnovenie"
+msgstr "ident. slo obnovenia prehrvania"
msgid "Miscellaneous"
msgstr "Rzne"
msgid "Setup.Miscellaneous$Min. event timeout (min)"
-msgstr "Min. pauza medzi udalosami (min)"
+msgstr "limit pred nahrvanm (min)"
msgid "Setup.Miscellaneous$Min. user inactivity (min)"
-msgstr "asov limit neinnosti (min)"
+msgstr "vymedzi uvatesk neinnos (min)"
msgid "Setup.Miscellaneous$SVDRP timeout (s)"
msgstr "asov limit SVDRP (s)"
msgid "Setup.Miscellaneous$Zap timeout (s)"
-msgstr "asov limit Zap (s)"
+msgstr "pamta predol kanl po ... (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
-msgstr "as pri vobe kanla (ms)"
+msgstr "limit pri vobe kanla (ms)"
+
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Kanl po spusten"
@@ -1138,10 +1144,10 @@ msgid "Setup.Miscellaneous$Initial volume"
msgstr "Hlasitos po spusten"
msgid "Setup.Miscellaneous$Channels wrap"
-msgstr "Prepna z prvho na posledn a opane"
+msgstr "Kanly cyklova pri prepnut"
msgid "Setup.Miscellaneous$Show channel names with source"
-msgstr ""
+msgstr "Zobrazi kanly so zdrojom"
msgid "Setup.Miscellaneous$Emergency exit"
msgstr "Ndzov ukonenie"
@@ -1192,22 +1198,22 @@ msgid "Cancel editing?"
msgstr "Zrui pravy?"
msgid "No audio available!"
-msgstr "Zvuk nie je dostupn!"
+msgstr "Zvukov stopy nie s dostupn!"
msgid "No subtitles"
msgstr "Bez titulkov"
msgid "No subtitles available!"
-msgstr "iadne dostupn titulky!"
+msgstr "iadne titulky nie s dostupn!"
msgid "Not enough disk space to start recording!"
msgstr "Mlo volnho miesta na nahrvanie!"
msgid "No free DVB device to record!"
-msgstr "iadna DVB karta nie je voln pre nahrvanie"
+msgstr "Pre nahrvanie nie je voln iadne DVB zariadenie!"
msgid "Pausing live video..."
-msgstr "Preruuje sa beiaci program ..."
+msgstr "Pozastavuje sa iv vysielanie ..."
msgid "Delete timeshift recording?"
msgstr "Vymaza timeshift zznamy?"
@@ -1217,19 +1223,19 @@ msgid "Jump: "
msgstr "Skok: "
msgid "No editing marks defined!"
-msgstr "Nie s uren znaky prav!"
+msgstr "Neboli vyznaen znaky pre zostrihanie!"
msgid "No editing sequences defined!"
-msgstr ""
+msgstr "Neboli uren sekvencie prav!"
msgid "Can't start editing process!"
-msgstr "Neme zaa spracovanie prav!"
+msgstr "Neme zaa zostrihanie!"
msgid "Editing process started"
-msgstr "Spracovanie prav zaalo"
+msgstr "Proces strihania sa spustil"
msgid "Editing process already active!"
-msgstr "Spracovanie prav je v innosti!"
+msgstr "Proces zostrihania je aktvny!"
msgid "FileNameChars$ abcdefghijklmnopqrstuvwxyz0123456789-.,#~\\^$[]|()*+?{}/:%@&"
msgstr " abcdefghijklmnopqrstuvwxyz0123456789-.,#~\\^$[]|()*+?{}/:%@&"
@@ -1256,22 +1262,22 @@ msgid "Channel locked (recording)!"
msgstr "Kanl je zamknut (nahrva sa)!"
msgid "Low disk space!"
-msgstr "Za chvku bude pln disk!"
+msgstr "Nedostatok miesta na disku!"
msgid "Regenerating index file"
-msgstr "Regeneran indexov sbor"
+msgstr "Obnova indexovho sboru"
msgid "Index file regeneration complete"
-msgstr "Regenercia indexovho sboru hotov"
+msgstr "Obnova indexovho sboru hotov"
msgid "Index file regeneration failed!"
-msgstr ""
+msgstr "Obnova indexovho sboru zlyhala!"
msgid "Can't shutdown - option '-s' not given!"
msgstr "Vypnutie nie je mon - chba voba '-s'!"
msgid "Editing - shut down anyway?"
-msgstr "Upravujem - aj tak vypn?"
+msgstr "Zostrihva sa - aj tak vypn?"
msgid "Recording - shut down anyway?"
msgstr "Nahrva - aj tak vypn?"
@@ -1281,11 +1287,11 @@ msgid "Recording in %ld minutes, shut down anyway?"
msgstr "Nahrvanie zane za %ld mint - aj tak vypn?"
msgid "shut down anyway?"
-msgstr "Aj tak vypn?"
+msgstr "Urite vypn?"
#, c-format
msgid "Plugin %s wakes up in %ld min, continue?"
-msgstr "Modul %s tartuje za %ld min., pokraova?"
+msgstr "Modul %s sa prebud za %ld min., pokraova?"
msgid "Editing - restart anyway?"
msgstr "Upravuje sa - aj tak retartova?"
@@ -1294,7 +1300,7 @@ msgid "Recording - restart anyway?"
msgstr "Nahrva - aj tak retartova?"
msgid "restart anyway?"
-msgstr "Aj tak retartova?"
+msgstr "Urite retartova?"
#. TRANSLATORS: note the trailing blank!
msgid "Volume "
@@ -1304,22 +1310,22 @@ msgid "Classic VDR"
msgstr "Klasick VDR"
msgid "DISK"
-msgstr ""
+msgstr "DISK"
msgid "LOAD"
-msgstr ""
+msgstr "ZAAENIE"
msgid "TIMERS"
-msgstr ""
+msgstr "PLNY"
msgid "DEVICES"
-msgstr ""
+msgstr "ZARIADENIA"
msgid "LIVE"
-msgstr ""
+msgstr "NAIVO"
msgid "PLAY"
-msgstr ""
+msgstr "PREHRVA SA"
msgid "ST:TNG Panels"
msgstr "ST:TNG panely"
@@ -1363,7 +1369,7 @@ msgid "Recording started"
msgstr "Zaalo nahrvanie"
msgid "VDR will shut down later - press Power to force"
-msgstr "Vypnutie VDR bude odloen - platnos potvrdte klvesou Power"
+msgstr "VDR sa vypne neskorie. - Vyntenie potvrdte klvesou Power"
msgid "Press any key to cancel shutdown"
msgstr "Ktorkovek klvesa zru vypnutie"
@@ -1372,10 +1378,10 @@ msgid "Switching primary DVB..."
msgstr "Prepna hlavn DVB..."
msgid "Editing process failed!"
-msgstr "Spracovanie prav zlyhalo!"
+msgstr "Zostrihvanie zlyhalo!"
msgid "Editing process finished"
-msgstr "Spracovanie prav skonilo"
+msgstr "Proces zostrihvania dokonen"
msgid "Press any key to cancel restart"
msgstr "ktorkovek klvesa zru retart"
@@ -1388,4 +1394,4 @@ msgid "Disk"
msgstr "Disk"
msgid "free"
-msgstr "volne"
+msgstr "von"
diff --git a/po/sl_SI.po b/po/sl_SI.po
index d3ef84c..6c6abb5 100644
--- a/po/sl_SI.po
+++ b/po/sl_SI.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-02-28 19:44+0100\n"
"Last-Translator: Matjaz Thaler <matjaz.thaler@guest.arnes.si>\n"
"Language-Team: Slovenian <vdr@linuxtv.org>\n"
@@ -1129,6 +1129,12 @@ msgstr "as uglaevanja (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Timeout za vnos kanala (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Privzeti kanal"
diff --git a/po/sr_SR.po b/po/sr_SR.po
index 0a73f12..b732044 100644
--- a/po/sr_SR.po
+++ b/po/sr_SR.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.7.1\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2011-01-09 15:57+0100\n"
"Last-Translator: Milan Cvijanovi <elcom_cvijo@hotmail.com>\n"
"Language-Team: Serbian <vdr@linuxtv.org>\n"
@@ -1151,6 +1151,12 @@ msgstr "Zap istie (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Upis kanala istie (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Poetni kanal"
diff --git a/po/sv_SE.po b/po/sv_SE.po
index 3c49646..b5df87d 100644
--- a/po/sv_SE.po
+++ b/po/sv_SE.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-03-12 18:25+0100\n"
"Last-Translator: Magnus Andersson <svankan@bahnhof.se>\n"
"Language-Team: Swedish <vdr@linuxtv.org>\n"
@@ -1131,6 +1131,12 @@ msgstr "Zap timeout(s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Timeout kanal (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Kanal vid uppstart"
diff --git a/po/tr_TR.po b/po/tr_TR.po
index 8b83d5f..30e3fbd 100644
--- a/po/tr_TR.po
+++ b/po/tr_TR.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2008-02-28 00:33+0100\n"
"Last-Translator: Oktay Yolgeen <oktay_73@yahoo.de>\n"
"Language-Team: Turkish <vdr@linuxtv.org>\n"
@@ -1128,6 +1128,12 @@ msgstr "Zaping zaman am (sn)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Kanal giri zaman am (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Aldaki kanal"
diff --git a/po/uk_UA.po b/po/uk_UA.po
index 21ef790..4144c7a 100644
--- a/po/uk_UA.po
+++ b/po/uk_UA.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.7.7\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2010-04-25 16:35+0200\n"
"Last-Translator: Yarema aka Knedlyk <yupadmin@gmail.com>\n"
"Language-Team: Ukrainian <vdr@linuxtv.org>\n"
@@ -1128,6 +1128,12 @@ msgstr "Затримка переключання каналу (сек)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "Затримка часу для впровадження каналу (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "Канал при включенні"
diff --git a/po/zh_CN.po b/po/zh_CN.po
index a03396e..3f4a6c6 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2012-12-07 14:59+0100\n"
+"POT-Creation-Date: 2013-02-03 16:46+0100\n"
"PO-Revision-Date: 2009-09-23 23:50+0800\n"
"Last-Translator: Nan Feng <nfgx@21cn.com>\n"
"Language-Team: Chinese (simplified) <vdr@linuxtv.org>\n"
@@ -1131,6 +1131,12 @@ msgstr "Zap 超时 (s)"
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
msgstr "频道进入超时 (ms)"
+msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
+msgstr ""
+
+msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
+msgstr ""
+
msgid "Setup.Miscellaneous$Initial channel"
msgstr "初始频道"
diff --git a/recording.c b/recording.c
index 9cd0522..57248a0 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 2.83 2013/01/16 14:17:44 kls Exp $
+ * $Id: recording.c 2.86 2013/02/08 09:02:07 kls Exp $
*/
#include "recording.h"
@@ -64,11 +64,11 @@
#define MARKSUPDATEDELTA 10 // seconds between checks for updating editing marks
#define MININDEXAGE 3600 // seconds before an index file is considered no longer to be written
-#define MAX_SUBTITLE_LENGTH 40
-
#define MAX_LINK_LEVEL 6
-bool VfatFileSystem = false;
+int DirectoryPathMax = PATH_MAX;
+int DirectoryNameMax = NAME_MAX;
+bool DirectoryEncoding = false;
int InstanceId = 0;
cRecordings DeletedRecordings(true);
@@ -540,22 +540,30 @@ tCharExchange CharExchange[] = {
{ 0, 0 }
};
+const char *InvalidChars = "\"\\/:*?|<>#";
+
+bool NeedsConversion(const char *p)
+{
+ return DirectoryEncoding &&
+ (strchr(InvalidChars, *p) // characters that can't be part of a Windows file/directory name
+ || *p == '.' && (!*(p + 1) || *(p + 1) == FOLDERDELIMCHAR)); // Windows can't handle '.' at the end of file/directory names
+}
+
char *ExchangeChars(char *s, bool ToFileSystem)
{
char *p = s;
while (*p) {
- if (VfatFileSystem) {
- // The VFAT file system can't handle all characters, so we
+ if (DirectoryEncoding) {
+ // Some file systems can't handle all characters, so we
// have to take extra efforts to encode/decode them:
if (ToFileSystem) {
- const char *InvalidChars = "\"\\/:*?|<>#";
switch (*p) {
// characters that can be mapped to other characters:
case ' ': *p = '_'; break;
case FOLDERDELIMCHAR: *p = '/'; break;
// characters that have to be encoded:
default:
- if (strchr(InvalidChars, *p) || *p == '.' && (!*(p + 1) || *(p + 1) == FOLDERDELIMCHAR)) { // Windows can't handle '.' at the end of file/directory names
+ if (NeedsConversion(p)) {
int l = p - s;
if (char *NewBuffer = (char *)realloc(s, strlen(s) + 10)) {
s = NewBuffer;
@@ -610,6 +618,107 @@ char *ExchangeChars(char *s, bool ToFileSystem)
return s;
}
+char *LimitNameLengths(char *s, int PathMax, int NameMax)
+{
+ // Limits the total length of the directory path in 's' to PathMax, and each
+ // individual directory name to NameMax. The lengths of characters that need
+ // conversion when using 's' as a file name are taken into account accordingly.
+ // If a directory name exceeds NameMax, it will be truncated. If the whole
+ // directory path exceeds PathMax, individual directory names will be shortened
+ // (from right to left) until the limit is met, or until the currently handled
+ // directory name consists of only a single character. All operations are performed
+ // directly on the given 's', which may become shorter (but never longer) than
+ // the original value.
+ // Returns a pointer to 's'.
+ int Length = strlen(s);
+ int PathLength = 0;
+ // Collect the resulting lengths of each character:
+ bool NameTooLong = false;
+ int8_t a[Length];
+ int n = 0;
+ int NameLength = 0;
+ for (char *p = s; *p; p++) {
+ if (*p == FOLDERDELIMCHAR) {
+ a[n] = -1; // FOLDERDELIMCHAR is a single character, neg. sign marks it
+ NameTooLong |= NameLength > NameMax;
+ NameLength = 0;
+ PathLength += 1;
+ }
+ else if (NeedsConversion(p)) {
+ a[n] = 3; // "#xx"
+ NameLength += 3;
+ PathLength += 3;
+ }
+ else {
+ int8_t l = Utf8CharLen(p);
+ a[n] = l;
+ NameLength += l;
+ PathLength += l;
+ while (l-- > 1) {
+ a[++n] = 0;
+ p++;
+ }
+ }
+ n++;
+ }
+ NameTooLong |= NameLength > NameMax;
+ // Limit names to NameMax:
+ if (NameTooLong) {
+ while (n > 0) {
+ // Calculate the length of the current name:
+ int NameLength = 0;
+ int i = n;
+ int b = i;
+ while (i-- > 0 && a[i] >= 0) {
+ NameLength += a[i];
+ b = i;
+ }
+ // Shorten the name if necessary:
+ if (NameLength > NameMax) {
+ int l = 0;
+ i = n;
+ while (i-- > 0 && a[i] >= 0) {
+ l += a[i];
+ if (NameLength - l <= NameMax) {
+ memmove(s + i, s + n, Length - n + 1);
+ memmove(a + i, a + n, Length - n + 1);
+ Length -= n - i;
+ PathLength -= l;
+ break;
+ }
+ }
+ }
+ // Switch to the next name:
+ n = b - 1;
+ }
+ }
+ // Limit path to PathMax:
+ n = Length;
+ while (PathLength > PathMax && n > 0) {
+ // Calculate how much to cut off the current name:
+ int i = n;
+ int b = i;
+ int l = 0;
+ while (--i > 0 && a[i - 1] >= 0) {
+ if (a[i] > 0) {
+ l += a[i];
+ b = i;
+ if (PathLength - l <= PathMax)
+ break;
+ }
+ }
+ // Shorten the name if necessary:
+ if (l > 0) {
+ memmove(s + b, s + n, Length - n + 1);
+ Length -= n - b;
+ PathLength -= l;
+ }
+ // Switch to the next name:
+ n = i - 1;
+ }
+ return s;
+}
+
cRecording::cRecording(cTimer *Timer, const cEvent *Event)
{
resume = RESUME_NOT_INITIALIZED;
@@ -628,16 +737,10 @@ cRecording::cRecording(cTimer *Timer, const cEvent *Event)
// set up the actual name:
const char *Title = Event ? Event->Title() : NULL;
const char *Subtitle = Event ? Event->ShortText() : NULL;
- char SubtitleBuffer[MAX_SUBTITLE_LENGTH];
if (isempty(Title))
Title = Timer->Channel()->Name();
if (isempty(Subtitle))
Subtitle = " ";
- else if (strlen(Subtitle) > MAX_SUBTITLE_LENGTH) {
- // let's make sure the Subtitle doesn't produce too long a file name:
- Utf8Strn0Cpy(SubtitleBuffer, Subtitle, MAX_SUBTITLE_LENGTH);
- Subtitle = SubtitleBuffer;
- }
const char *macroTITLE = strstr(Timer->File(), TIMERMACRO_TITLE);
const char *macroEPISODE = strstr(Timer->File(), TIMERMACRO_EPISODE);
if (macroTITLE || macroEPISODE) {
@@ -872,9 +975,12 @@ const char *cRecording::FileName(void) const
const char *fmt = isPesRecording ? NAMEFORMATPES : NAMEFORMATTS;
int ch = isPesRecording ? priority : channel;
int ri = isPesRecording ? lifetime : instanceId;
- name = ExchangeChars(name, true);
- fileName = strdup(cString::sprintf(fmt, VideoDirectory, name, t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min, ch, ri));
- name = ExchangeChars(name, false);
+ char *Name = LimitNameLengths(strdup(name), DirectoryPathMax - strlen(VideoDirectory) - 1 - 42, DirectoryNameMax); // 42 = length of an actual recording directory name (generated with DATAFORMATTS) plus some reserve
+ if (strcmp(Name, name) != 0)
+ dsyslog("recording file name '%s' truncated to '%s'", name, Name);
+ Name = ExchangeChars(Name, true);
+ fileName = strdup(cString::sprintf(fmt, VideoDirectory, Name, t->tm_year + 1900, t->tm_mon + 1, t->tm_mday, t->tm_hour, t->tm_min, ch, ri));
+ free(Name);
}
return fileName;
}
@@ -1743,12 +1849,14 @@ cIndexFile::cIndexFile(const char *FileName, bool Record, bool IsPesRecording, b
esyslog("ERROR: can't read from file '%s'", *fileName);
free(index);
index = NULL;
- close(f);
- f = -1;
}
- // we don't close f here, see CatchUp()!
else if (isPesRecording)
ConvertFromPes(index, size);
+ if (!index || time(NULL) - buf.st_mtime >= MININDEXAGE) {
+ close(f);
+ f = -1;
+ }
+ // otherwise we don't close f here, see CatchUp()!
}
else
LOG_ERROR_STR(*fileName);
@@ -1863,7 +1971,8 @@ bool cIndexFile::CatchUp(int Index)
LOG_ERROR_STR(*fileName);
if (Index < last)
break;
- cCondWait::SleepMs(INDEXCATCHUPWAIT);
+ cCondVar CondVar;
+ CondVar.TimedWait(mutex, INDEXCATCHUPWAIT);
}
}
return index != NULL;
diff --git a/recording.h b/recording.h
index f555024..037f204 100644
--- a/recording.h
+++ b/recording.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.h 2.41 2012/12/23 15:11:53 kls Exp $
+ * $Id: recording.h 2.42 2013/02/07 13:42:17 kls Exp $
*/
#ifndef __RECORDING_H
@@ -22,7 +22,9 @@
#define TIMERMACRO_TITLE "TITLE"
#define TIMERMACRO_EPISODE "EPISODE"
-extern bool VfatFileSystem;
+extern int DirectoryPathMax;
+extern int DirectoryNameMax;
+extern bool DirectoryEncoding;
extern int InstanceId;
void RemoveDeletedRecordings(void);
diff --git a/remote.c b/remote.c
index 3f20d02..f3d90c9 100644
--- a/remote.c
+++ b/remote.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.c 2.6 2013/01/13 12:01:52 kls Exp $
+ * $Id: remote.c 2.8 2013/02/03 15:44:55 kls Exp $
*/
#include "remote.h"
@@ -295,6 +295,14 @@ int cKbdRemote::MapCodeToFunc(uint64_t Code)
return kfNone;
}
+void cKbdRemote::PutKey(uint64_t Code, bool Repeat, bool Release)
+{
+ if (rawMode || !Put(Code, Repeat, Release)) {
+ if (int func = MapCodeToFunc(Code))
+ Put(KBDKEY(func), Repeat, Release);
+ }
+}
+
int cKbdRemote::ReadKey(void)
{
cPoller Poller(STDIN_FILENO);
@@ -356,24 +364,55 @@ uint64_t cKbdRemote::ReadKeySequence(void)
void cKbdRemote::Action(void)
{
+ cTimeMs FirstTime;
+ cTimeMs LastTime;
+ uint64_t FirstCommand = 0;
uint64_t LastCommand = 0;
+ bool Delayed = false;
bool Repeat = false;
while (Running()) {
uint64_t Command = ReadKeySequence();
- if (LastCommand && Command != LastCommand && Repeat) {
- if (!rawMode)
- Put(LastCommand, false, true);
- Repeat = false;
- }
if (Command) {
- if (Command == LastCommand)
+ if (Command == LastCommand) {
+ // If two keyboard events with the same command come in without an intermediate
+ // timeout, this is a long key press that caused the repeat function to kick in:
+ Delayed = false;
+ FirstCommand = 0;
+ if (FirstTime.Elapsed() < (uint)Setup.RcRepeatDelay)
+ continue; // repeat function kicks in after a short delay
+ if (LastTime.Elapsed() < (uint)Setup.RcRepeatDelta)
+ continue; // skip same keys coming in too fast
+ PutKey(Command, true);
Repeat = true;
- if (rawMode || !Put(Command, Repeat)) {
- int func = MapCodeToFunc(Command);
- if (func)
- Put(KBDKEY(func));
+ LastTime.Set();
}
+ else if (Command == FirstCommand) {
+ // If the same command comes in twice with an intermediate timeout, we
+ // need to delay the second command to see whether it is going to be
+ // a repeat function or a separate key press:
+ Delayed = true;
+ }
+ else {
+ // This is a totally new key press, so we accept it immediately:
+ PutKey(Command);
+ Delayed = false;
+ FirstCommand = Command;
+ FirstTime.Set();
+ }
+ }
+ else if (Repeat) {
+ // Timeout after a repeat function, so we generate a 'release':
+ PutKey(LastCommand, false, true);
+ Repeat = false;
+ }
+ else if (Delayed && FirstCommand) {
+ // Timeout after two normal key presses of the same key, so accept the
+ // delayed key:
+ PutKey(FirstCommand);
+ Delayed = false;
+ FirstCommand = 0;
+ FirstTime.Set();
}
LastCommand = Command;
}
diff --git a/remote.h b/remote.h
index 4478f7f..d453b2f 100644
--- a/remote.h
+++ b/remote.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.h 2.0 2008/02/23 14:38:47 kls Exp $
+ * $Id: remote.h 2.1 2013/02/03 14:34:56 kls Exp $
*/
#ifndef __REMOTE_H
@@ -111,6 +111,7 @@ private:
int ReadKey(void);
uint64_t ReadKeySequence(void);
int MapCodeToFunc(uint64_t Code);
+ void PutKey(uint64_t Code, bool Repeat = false, bool Release = false);
public:
cKbdRemote(void);
virtual ~cKbdRemote();
diff --git a/skinlcars.c b/skinlcars.c
index b2dab50..42565b7 100644
--- a/skinlcars.c
+++ b/skinlcars.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinlcars.c 2.15 2012/09/19 11:05:50 kls Exp $
+ * $Id: skinlcars.c 2.18 2013/01/25 14:54:11 kls Exp $
*/
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures,
@@ -199,6 +199,8 @@ THEME_CLR(Theme, clrTrackItemCurrentBg, CLR_TRACK);
// --- Helper functions ------------------------------------------------------
+static bool TwoColors = false;
+
static cOsd *CreateOsd(int Left, int Top, int x0, int y0, int x1, int y1)
{
cOsd *Osd = cOsdProvider::NewOsd(Left, Top);
@@ -208,6 +210,7 @@ static cOsd *CreateOsd(int Left, int Top, int x0, int y0, int x1, int y1)
Area.bpp = Bpp[i];
if (Osd->CanHandleAreas(&Area, 1) == oeOk) {
Osd->SetAreas(&Area, 1);
+ TwoColors = Area.bpp == 1;
break;
}
}
@@ -272,16 +275,25 @@ static void DrawDeviceSignal(cOsd *Osd, const cDevice *Device, int x0, int y0, i
int y01 = y00 + h;
int y03 = y1 - d;
int y02 = y03 - h;
+ tColor ColorSignalValue, ColorSignalRest;
+ if (TwoColors) {
+ ColorSignalValue = Theme.Color(clrBackground);
+ ColorSignalRest = Theme.Color(clrMenuFrameBg);
+ }
+ else {
+ ColorSignalValue = Theme.Color(clrSignalValue);
+ ColorSignalRest = Theme.Color(clrSignalRest);
+ }
if (SignalStrength >= 0 && (Initial || SignalStrength != LastSignalStrength)) {
int s = SignalStrength * w / 100;
- Osd->DrawRectangle(x00, y00, x00 + s - 1, y01 - 1, Theme.Color(clrSignalValue));
- Osd->DrawRectangle(x00 + s, y00, x01 - 1, y01 - 1, Theme.Color(clrSignalRest));
+ Osd->DrawRectangle(x00, y00, x00 + s - 1, y01 - 1, ColorSignalValue);
+ Osd->DrawRectangle(x00 + s, y00, x01 - 1, y01 - 1, ColorSignalRest);
LastSignalStrength = SignalStrength;
}
if (SignalQuality >= 0 && (Initial || SignalQuality != LastSignalQuality)) {
int q = SignalQuality * w / 100;
- Osd->DrawRectangle(x00, y02, x00 + q - 1, y03 - 1, Theme.Color(clrSignalValue));
- Osd->DrawRectangle(x00 + q, y02, x01 - 1, y03 - 1, Theme.Color(clrSignalRest));
+ Osd->DrawRectangle(x00, y02, x00 + q - 1, y03 - 1, ColorSignalValue);
+ Osd->DrawRectangle(x00 + q, y02, x01 - 1, y03 - 1, ColorSignalRest);
LastSignalQuality = SignalQuality;
}
}
@@ -445,7 +457,7 @@ void cSkinLCARSDisplayChannel::DrawTrack(void)
void cSkinLCARSDisplayChannel::DrawSeen(int Current, int Total)
{
- int Seen = min(xc07 - xc06, int((xc07 - xc06) * double(Current) / Total));
+ int Seen = (Total > 0) ? min(xc07 - xc06, int((xc07 - xc06) * double(Current) / Total)) : 0;
if (initial || Seen != lastSeen) {
int y0 = yc11 - ShowSeenExtent;
int y1 = yc11 + lineHeight / 2 - Gap / 2;
@@ -1331,6 +1343,7 @@ void cSkinLCARSDisplayMenu::DrawLive(const cChannel *Channel)
osd->DrawText(xa00, yt00, itoa(Channel->Number()), Theme.Color(clrChannelFrameFg), Theme.Color(clrChannelFrameBg), tallFont, xa02 - xa00, yt02 - yt00, taTop | taRight | taBorder);
osd->DrawText(xa03, yt00, Channel->Name(), Theme.Color(clrChannelName), Theme.Color(clrBackground), tallFont, xd00 - xa03, yd01 - yd00, taTop | taLeft);
lastChannel = Channel;
+ DrawSeen(0, 0);
}
// The current programme:
cSchedulesLock SchedulesLock;
@@ -1411,7 +1424,7 @@ void cSkinLCARSDisplayMenu::DrawInfo(const cEvent *Event, bool WithTime)
void cSkinLCARSDisplayMenu::DrawSeen(int Current, int Total)
{
- int Seen = min(xm08 - xm02, int((xm08 - xm02) * double(Current) / Total));
+ int Seen = (Total > 0) ? min(xm08 - xm02, int((xm08 - xm02) * double(Current) / Total)) : 0;
if (initial || Seen != lastSeen) {
int y0 = yc04 - ShowSeenExtent;
int y1 = yc04 + lineHeight / 2 - Gap / 2;
@@ -1493,8 +1506,14 @@ void cSkinLCARSDisplayMenu::SetItem(const char *Text, int Index, bool Current, b
int y = yi00 + Index * lineHeight;
tColor ColorFg, ColorBg;
if (Current) {
- ColorFg = Theme.Color(clrMenuItemCurrentFg);
- ColorBg = Theme.Color(clrMenuItemCurrentBg);
+ if (TwoColors) {
+ ColorFg = Theme.Color(clrBackground);
+ ColorBg = Theme.Color(clrMenuFrameBg);
+ }
+ else {
+ ColorFg = Theme.Color(clrMenuItemCurrentFg);
+ ColorBg = Theme.Color(clrMenuItemCurrentBg);
+ }
osd->DrawRectangle(xi00, y, xi01 - 1, y + lineHeight - 1, ColorBg);
osd->DrawRectangle(xi02, y, xi02 + lineHeight / 2 - 1, y + lineHeight - 1, ColorBg);
osd->DrawEllipse (xi02 + lineHeight / 2, y, xi03 - 1, y + lineHeight - 1, ColorBg, 5);
@@ -1662,6 +1681,7 @@ private:
int lineHeight;
tColor frameColor;
int lastCurrentWidth;
+ int lastTotalWidth;
cString lastDate;
tTrackId lastTrackId;
void DrawDate(void);
@@ -1687,6 +1707,7 @@ cSkinLCARSDisplayReplay::cSkinLCARSDisplayReplay(bool ModeOnly)
lineHeight = font->Height();
frameColor = Theme.Color(clrReplayFrameBg);
lastCurrentWidth = 0;
+ lastTotalWidth = 0;
int d = 5 * lineHeight;
xp00 = 0;
xp01 = xp00 + d / 2;
@@ -1804,15 +1825,16 @@ void cSkinLCARSDisplayReplay::SetCurrent(const char *Current)
{
const cFont *font = cFont::GetFont(fontOsd);
int w = font->Width(Current);
- osd->DrawText(xp03, yp03 - lineHeight, Current, Theme.Color(clrReplayPosition), Theme.Color(clrBackground), font, lastCurrentWidth > w ? lastCurrentWidth : w, 0, taLeft);
+ osd->DrawText(xp03, yp03 - lineHeight, Current, Theme.Color(clrReplayPosition), Theme.Color(clrBackground), font, max(lastCurrentWidth, w), 0, taLeft);
lastCurrentWidth = w;
}
void cSkinLCARSDisplayReplay::SetTotal(const char *Total)
{
const cFont *font = cFont::GetFont(fontOsd);
- int w = font->Width(Total) + 10;
- osd->DrawText(xp13 - w, yp03 - lineHeight, Total, Theme.Color(clrReplayPosition), Theme.Color(clrBackground), font, w, 0, taRight);
+ int w = font->Width(Total);
+ osd->DrawText(xp13 - w, yp03 - lineHeight, Total, Theme.Color(clrReplayPosition), Theme.Color(clrBackground), font, max(lastTotalWidth, w), 0, taRight);
+ lastTotalWidth = w;
}
void cSkinLCARSDisplayReplay::SetJump(const char *Jump)
diff --git a/timers.c b/timers.c
index ab8e477..16cf8ce 100644
--- a/timers.c
+++ b/timers.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.c 2.15 2012/12/07 13:14:00 kls Exp $
+ * $Id: timers.c 2.16 2013/02/05 11:13:20 kls Exp $
*/
#include "timers.h"
@@ -17,8 +17,6 @@
#include "remote.h"
#include "status.h"
-#define VFAT_MAX_FILENAME 40 // same as MAX_SUBTITLE_LENGTH in recording.c
-
// IMPORTANT NOTE: in the 'sscanf()' calls there is a blank after the '%d'
// format characters in order to allow any number of blanks after a numeric
// value!
@@ -80,11 +78,6 @@ cTimer::cTimer(bool Instant, bool Pause, cChannel *Channel)
lifetime = Pause ? Setup.PauseLifetime : Setup.DefaultLifetime;
if (Instant && channel)
snprintf(file, sizeof(file), "%s%s", Setup.MarkInstantRecord ? "@" : "", *Setup.NameInstantRecord ? Setup.NameInstantRecord : channel->Name());
- if (VfatFileSystem && (Utf8StrLen(file) > VFAT_MAX_FILENAME)) {
- dsyslog("timer file name too long for VFAT file system: '%s'", file);
- file[Utf8SymChars(file, VFAT_MAX_FILENAME)] = 0;
- dsyslog("timer file name truncated to '%s'", file);
- }
}
cTimer::cTimer(const cEvent *Event)
@@ -120,11 +113,6 @@ cTimer::cTimer(const cEvent *Event)
const char *Title = Event->Title();
if (!isempty(Title))
Utf8Strn0Cpy(file, Event->Title(), sizeof(file));
- if (VfatFileSystem && (Utf8StrLen(file) > VFAT_MAX_FILENAME)) {
- dsyslog("timer file name too long for VFAT file system: '%s'", file);
- file[Utf8SymChars(file, VFAT_MAX_FILENAME)] = 0;
- dsyslog("timer file name truncated to '%s'", file);
- }
SetEvent(Event);
}
@@ -332,18 +320,6 @@ bool cTimer::Parse(const char *s)
}
//TODO add more plausibility checks
result = ParseDay(daybuffer, day, weekdays);
- if (VfatFileSystem) {
- char *p = strrchr(filebuffer, FOLDERDELIMCHAR);
- if (p)
- p++;
- else
- p = filebuffer;
- if (Utf8StrLen(p) > VFAT_MAX_FILENAME) {
- dsyslog("timer file name too long for VFAT file system: '%s'", p);
- p[Utf8SymChars(p, VFAT_MAX_FILENAME)] = 0;
- dsyslog("timer file name truncated to '%s'", p);
- }
- }
Utf8Strn0Cpy(file, filebuffer, sizeof(file));
strreplace(file, '|', ':');
if (isnumber(channelbuffer))
diff --git a/timers.h b/timers.h
index cde8b3b..adc5509 100644
--- a/timers.h
+++ b/timers.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.h 2.5 2012/12/07 13:13:40 kls Exp $
+ * $Id: timers.h 2.6 2013/02/05 11:23:24 kls Exp $
*/
#ifndef __TIMERS_H
@@ -39,7 +39,7 @@ private:
int stop;
int priority;
int lifetime;
- mutable char file[MaxFileName];
+ mutable char file[NAME_MAX * 2]; // *2 to be able to hold 'title' and 'episode', which can each be up to 255 characters long
char *aux;
const cEvent *event;
public:
diff --git a/vdr.1 b/vdr.1
index d22c4e9..63915ec 100644
--- a/vdr.1
+++ b/vdr.1
@@ -8,7 +8,7 @@
.\" License as specified in the file COPYING that comes with the
.\" vdr distribution.
.\"
-.\" $Id: vdr.1 2.9 2012/09/01 13:40:49 kls Exp $
+.\" $Id: vdr.1 2.11 2013/02/08 10:50:30 kls Exp $
.\"
.TH vdr 1 "10 Feb 2008" "1.6" "Video Disk Recorder"
.SH NAME
@@ -43,7 +43,7 @@ which can be accessed on port 6419, for instance by \fBtelnet\fR.
Send Dolby Digital audio to stdin of command \fIcmd\fR.
.TP
.BI \-\-cachedir= dir
-save cache files in \fIdir\fR
+Save cache files in \fIdir\fR
(default is to save them in the video directory).
.TP
.BI \-c\ dir ,\ \-\-config= dir
@@ -57,6 +57,15 @@ Run in daemon mode (implies \-\-no\-kbd).
Use only the given DVB device (\fInum\fR = 0, 1, 2...).
There may be several \fB\-D\fR options (by default all DVB devices will be used).
.TP
+.BI \-\-dirnames= path[,name[,enc]]
+Set the maximum directory path length to \fIpath\fR (default is the maximum value
+allowed on the system). If \fIname\fR is also given, it defines the maximum directory
+name length (default is the maximum value allowed on the system). The optional
+\fIenc\fR can be 0 or 1, and controls whether special characters in directory names
+are encoded as hex values (default: 0).
+The length of the video directory name and that of the actual recording directory is
+subtracted from \fIpath\fR, to make sure the directory path will never become too long.
+.TP
.BI \-\-edit= rec
Edit the given recording.
\fIrec\fR must be the full path name of an existing recording.
@@ -162,7 +171,7 @@ Call \fIcmd\fR before and after a recording. See the file \fIINSTALL\fR for
more information.
.TP
.BI \-\-resdir= dir
-read resource files from \fIdir\fR
+Read resource files from \fIdir\fR
(default is to read them from the config directory).
.TP
.BI \-s\ cmd ,\ \-\-shutdown= cmd
@@ -185,11 +194,10 @@ vdr can switch to a lesser privileged user id during normal
operation.
.TP
.BI \-\-userdump
-allow coredumps if -u is given (only for debugging).
+Allow coredumps if -u is given (only for debugging).
.TP
.BI \-\-vfat
-Encode special characters in recording names to avoid problems
-with VFAT file systems.
+For backwards compatibility (same as \-\-dirnames= 250,40,1.
.TP
.BI \-v\ dir ,\ \-\-video= dir
Use \fIdir\fR as video directory.
diff --git a/vdr.c b/vdr.c
index 88b8956..8bb208b 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.tvdr.de
*
- * $Id: vdr.c 2.45 2012/12/06 10:29:23 kls Exp $
+ * $Id: vdr.c 2.48 2013/02/08 10:47:02 kls Exp $
*/
#include <getopt.h>
@@ -227,6 +227,7 @@ int main(int argc, char *argv[])
{ "config", required_argument, NULL, 'c' },
{ "daemon", no_argument, NULL, 'd' },
{ "device", required_argument, NULL, 'D' },
+ { "dirnames", required_argument, NULL, 'd' | 0x100 },
{ "edit", required_argument, NULL, 'e' | 0x100 },
{ "epgfile", required_argument, NULL, 'E' },
{ "filesize", required_argument, NULL, 'f' | 0x100 },
@@ -266,7 +267,8 @@ int main(int argc, char *argv[])
break;
case 'c': ConfigDirectory = optarg;
break;
- case 'd': DaemonMode = true; break;
+ case 'd': DaemonMode = true;
+ break;
case 'D': if (isnumber(optarg)) {
int n = atoi(optarg);
if (0 <= n && n < MAXDEVICES) {
@@ -276,6 +278,43 @@ int main(int argc, char *argv[])
}
fprintf(stderr, "vdr: invalid DVB device number: %s\n", optarg);
return 2;
+ case 'd' | 0x100: {
+ char *s = optarg;
+ int n = strtol(s, &s, 10);
+ if (n <= 0 || n >= PATH_MAX) {
+ fprintf(stderr, "vdr: invalid directory path length: %s\n", optarg);
+ return 2;
+ }
+ DirectoryPathMax = n;
+ if (!*s)
+ break;
+ if (*s++ != ',') {
+ fprintf(stderr, "vdr: invalid delimiter: %s\n", optarg);
+ return 2;
+ }
+ n = strtol(s, &s, 10);
+ if (n <= 0 || n >= NAME_MAX) {
+ fprintf(stderr, "vdr: invalid directory name length: %s\n", optarg);
+ return 2;
+ }
+ DirectoryNameMax = n;
+ if (!*s)
+ break;
+ if (*s++ != ',') {
+ fprintf(stderr, "vdr: invalid delimiter: %s\n", optarg);
+ return 2;
+ }
+ n = strtol(s, &s, 10);
+ if (n != 0 && n != 1) {
+ fprintf(stderr, "vdr: invalid directory encoding: %s\n", optarg);
+ return 2;
+ }
+ DirectoryEncoding = n;
+ if (*s) {
+ fprintf(stderr, "vdr: unexpected data: %s\n", optarg);
+ return 2;
+ }
+ }
break;
case 'e' | 0x100:
return CutRecording(optarg) ? 0 : 2;
@@ -302,31 +341,30 @@ int main(int argc, char *argv[])
fprintf(stderr, "vdr: invalid instance id: %s\n", optarg);
return 2;
case 'l': {
- char *p = strchr(optarg, '.');
- if (p)
- *p = 0;
- if (isnumber(optarg)) {
- int l = atoi(optarg);
- if (0 <= l && l <= 3) {
- SysLogLevel = l;
- if (!p)
- break;
- if (isnumber(p + 1)) {
- int l = atoi(p + 1);
- if (0 <= l && l <= 7) {
- int targets[] = { LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5, LOG_LOCAL6, LOG_LOCAL7 };
- SysLogTarget = targets[l];
- break;
- }
- }
- }
- }
+ char *p = strchr(optarg, '.');
+ if (p)
+ *p = 0;
+ if (isnumber(optarg)) {
+ int l = atoi(optarg);
+ if (0 <= l && l <= 3) {
+ SysLogLevel = l;
+ if (!p)
+ break;
+ if (isnumber(p + 1)) {
+ int l = atoi(p + 1);
+ if (0 <= l && l <= 7) {
+ int targets[] = { LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5, LOG_LOCAL6, LOG_LOCAL7 };
+ SysLogTarget = targets[l];
+ break;
+ }
+ }
+ }
+ }
if (p)
*p = '.';
fprintf(stderr, "vdr: invalid log level: %s\n", optarg);
return 2;
}
- break;
case 'L': if (access(optarg, R_OK | X_OK) == 0)
PluginManager.SetDirectory(optarg);
else {
@@ -384,7 +422,9 @@ int main(int argc, char *argv[])
case 'V': DisplayVersion = true;
break;
case 'v' | 0x100:
- VfatFileSystem = true;
+ DirectoryPathMax = 250;
+ DirectoryNameMax = 40;
+ DirectoryEncoding = true;
break;
case 'v': VideoDirectory = optarg;
while (optarg && *optarg && optarg[strlen(optarg) - 1] == '/')
@@ -399,7 +439,6 @@ int main(int argc, char *argv[])
}
fprintf(stderr, "vdr: invalid watchdog timeout: %s\n", optarg);
return 2;
- break;
default: return 2;
}
}
@@ -435,6 +474,13 @@ int main(int argc, char *argv[])
" -D NUM, --device=NUM use only the given DVB device (NUM = 0, 1, 2...)\n"
" there may be several -D options (default: all DVB\n"
" devices will be used)\n"
+ " --dirnames=PATH[,NAME[,ENC]]\n"
+ " set the maximum directory path length to PATH\n"
+ " (default: %d); if NAME is also given, it defines\n"
+ " the maximum directory name length (default: %d);\n"
+ " the optional ENC can be 0 or 1, and controls whether\n"
+ " special characters in directory names are encoded as\n"
+ " hex values (default: 0)\n"
" --edit=REC cut recording REC and exit\n"
" -E FILE, --epgfile=FILE write the EPG data into the given FILE (default is\n"
" '%s' in the video directory)\n"
@@ -477,13 +523,15 @@ int main(int argc, char *argv[])
" --userdump allow coredumps if -u is given (debugging)\n"
" -v DIR, --video=DIR use DIR as video directory (default: %s)\n"
" -V, --version print version information and exit\n"
- " --vfat encode special characters in recording names to\n"
- " avoid problems with VFAT file systems\n"
+ " --vfat for backwards compatibility (same as\n"
+ " --dirnames=250,40,1\n"
" -w SEC, --watchdog=SEC activate the watchdog timer with a timeout of SEC\n"
" seconds (default: %d); '0' disables the watchdog\n"
"\n",
DEFAULTCACHEDIR,
DEFAULTCONFDIR,
+ PATH_MAX,
+ NAME_MAX,
DEFAULTEPGDATAFILENAME,
MAXVIDEOFILESIZEDEFAULT,
DEFAULTPLUGINDIR,
@@ -924,7 +972,7 @@ int main(int argc, char *argv[])
Device->SetOccupied(TIMERDEVICETIMEOUT);
}
if (cDevice::PrimaryDevice()->HasDecoder() && HadProgramme && !cDevice::PrimaryDevice()->HasProgramme())
- Skins.Message(mtInfo, tr("Upcoming recording!")); // the previous SwitchChannel() has switched away the current live channel
+ Skins.QueueMessage(mtInfo, tr("Upcoming recording!")); // the previous SwitchChannel() has switched away the current live channel
}
}
}
@@ -1095,7 +1143,7 @@ int main(int argc, char *argv[])
if (Setup.PauseKeyHandling) {
if (Setup.PauseKeyHandling > 1 || Interface->Confirm(tr("Pause live video?"))) {
if (!cRecordControls::PauseLiveVideo())
- Skins.Message(mtError, tr("No free DVB device to record!"));
+ Skins.QueueMessage(mtError, tr("No free DVB device to record!"));
}
}
key = kNone; // nobody else needs to see this key
@@ -1105,7 +1153,7 @@ int main(int argc, char *argv[])
case kRecord:
if (!cControl::Control()) {
if (cRecordControls::Start())
- Skins.Message(mtInfo, tr("Recording started"));
+ Skins.QueueMessage(mtInfo, tr("Recording started"));
key = kNone; // nobody else needs to see this key
}
break;
@@ -1157,11 +1205,11 @@ int main(int argc, char *argv[])
switch (state) {
case osPause: DELETE_MENU;
if (!cRecordControls::PauseLiveVideo())
- Skins.Message(mtError, tr("No free DVB device to record!"));
+ Skins.QueueMessage(mtError, tr("No free DVB device to record!"));
break;
case osRecord: DELETE_MENU;
if (cRecordControls::Start())
- Skins.Message(mtInfo, tr("Recording started"));
+ Skins.QueueMessage(mtInfo, tr("Recording started"));
break;
case osRecordings:
DELETE_MENU;
@@ -1179,7 +1227,7 @@ int main(int argc, char *argv[])
case osSwitchDvb:
DELETE_MENU;
cControl::Shutdown();
- Skins.Message(mtInfo, tr("Switching primary DVB..."));
+ Skins.QueueMessage(mtInfo, tr("Switching primary DVB..."));
cDevice::SetPrimaryDevice(Setup.PrimaryDVB);
break;
case osPlugin: DELETE_MENU;
@@ -1249,9 +1297,9 @@ int main(int argc, char *argv[])
EITScanner.Process();
if (!cCutter::Active() && cCutter::Ended()) {
if (cCutter::Error())
- Skins.Message(mtError, tr("Editing process failed!"));
+ Skins.QueueMessage(mtError, tr("Editing process failed!"));
else
- Skins.Message(mtInfo, tr("Editing process finished"));
+ Skins.QueueMessage(mtInfo, tr("Editing process finished"));
}
}