mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
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.
This commit is contained in:
parent
889f7deeb4
commit
14bd32b948
@ -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 @@ S
|
||||
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 Münster <pmlists@free.fr>
|
||||
for fixing 'make install' to not overwrite existing configuration files
|
||||
|
51
HISTORY
51
HISTORY
@ -7533,3 +7533,54 @@ Video Disk Recorder Revision History
|
||||
- Improved cutting MPEG-2 video (thanks to Sören 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 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.
|
||||
|
6
INSTALL
6
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,
|
||||
|
12
MANUAL
12
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.
|
||||
|
@ -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
|
||||
|
4
Makefile
4
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)
|
||||
|
||||
|
15
PLUGINS.html
15
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>
|
||||
|
||||
|
@ -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).
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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 {
|
||||
|
@ -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) {
|
||||
|
@ -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:
|
||||
|
10
config.c
10
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);
|
||||
|
16
config.h
16
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;
|
||||
|
7
cutter.c
7
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();
|
||||
|
9
device.c
9
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
|
||||
|
9
device.h
9
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;
|
||||
|
@ -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;
|
||||
|
34
lirc.c
34
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;
|
||||
}
|
||||
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) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
6
menu.c
6
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();
|
||||
|
0
menu.cyVkmHd
Normal file
0
menu.cyVkmHd
Normal file
42
osd.c
42
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;
|
||||
}
|
||||
return NULL;
|
||||
pixmaps.Append(Pixmap);
|
||||
}
|
||||
return Pixmap;
|
||||
}
|
||||
|
||||
cPixmapMemory *cOsd::RenderPixmaps(void)
|
||||
@ -1737,8 +1733,8 @@ cPixmapMemory *cOsd::RenderPixmaps(void)
|
||||
LOCK_PIXMAPS;
|
||||
// Collect overlapping dirty rectangles:
|
||||
cRect d;
|
||||
for (int i = 0; i < numPixmaps; i++) {
|
||||
cPixmap *pm = pixmaps[i];
|
||||
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());
|
||||
@ -1746,6 +1742,7 @@ cPixmapMemory *cOsd::RenderPixmaps(void)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!d.IsEmpty()) {
|
||||
//#define DebugDirty
|
||||
#ifdef DebugDirty
|
||||
@ -1758,12 +1755,13 @@ 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];
|
||||
for (int i = 0; i < pixmaps.Size(); i++) {
|
||||
if (cPixmap *pm = pixmaps[i]) {
|
||||
if (pm->Layer() == Layer)
|
||||
Pixmap->DrawPixmap(pm, d);
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef DebugDirty
|
||||
cPixmapMemory DirtyIndicator(7, NewDirty);
|
||||
static tColor DirtyIndicatorColors[] = { 0x7FFFFF00, 0x7F00FFFF };
|
||||
|
17
osd.h
17
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
|
||||
|
8
po/ar.po
8
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 "القناة الاساسية"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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í"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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 f
|
||||
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
|
||||
msgstr "Zeitlimit für Kanaleingabe (ms)"
|
||||
|
||||
msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
|
||||
msgstr "Fernbedienung Wiederholverzögerung (ms)"
|
||||
|
||||
msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
|
||||
msgstr "Fernbedienung Wiederholintervall (ms)"
|
||||
|
||||
msgid "Setup.Miscellaneous$Initial channel"
|
||||
msgstr "Kanal beim Einschalten"
|
||||
|
||||
|
@ -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 ""
|
||||
|
||||
|
@ -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 introducción 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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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ä"
|
||||
|
||||
|
@ -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 cha
|
||||
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
|
||||
msgstr "Entrée chaîne 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 "Chaîne initiale"
|
||||
|
||||
|
@ -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 istje
|
||||
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
|
||||
msgstr "Upis kanala istjeèe (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 "Poèetni kanal"
|
||||
|
||||
|
@ -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: István Füley <ifuley@tigercomp.ro>\n"
|
||||
"Language-Team: Hungarian <vdr@linuxtv.org>\n"
|
||||
@ -1132,6 +1132,12 @@ msgstr "Ad
|
||||
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
|
||||
msgstr "Csatornaváltás 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 induláskor"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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 "Почетен канал"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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 ""
|
||||
|
||||
|
@ -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 wej¶cia do kana³u"
|
||||
|
||||
msgid "Setup.Miscellaneous$Remote control repeat delay (ms)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Setup.Miscellaneous$Remote control repeat delta (ms)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Setup.Miscellaneous$Initial channel"
|
||||
msgstr "Pocz±tkowy kana³"
|
||||
|
||||
|
@ -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 mudan
|
||||
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"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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 "ºÐÝÐÛ ßàØ ÒÚÛîçÕÝØØ"
|
||||
|
||||
|
182
po/sk_SK.po
182
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 "Zaèína prehµadáva» 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 "Fáza 1: Detekcia typu kódu"
|
||||
msgstr "Fáza 1: Detekcia typu diaľkového ovládania"
|
||||
|
||||
msgid "Press any key on the RC unit"
|
||||
msgstr "Stlačte ľubovolnú klávesu ovládania"
|
||||
msgstr "Stlačte ľubovolné tlačidlo ovládania"
|
||||
|
||||
msgid "RC code detected!"
|
||||
msgstr "Kód bol zistený!"
|
||||
msgstr "Bol zosnímaný kód diaľkového ovládania!"
|
||||
|
||||
msgid "Do not press any key..."
|
||||
msgstr "Nestláèajte ¾iadne klávesy..."
|
||||
|
||||
msgid "Phase 2: Learning specific key codes"
|
||||
msgstr "Fáza 2: Určenie konkrétneho kódu kláves"
|
||||
msgstr "Fáza 2: Určenie funkcie tlačidiel"
|
||||
|
||||
#, c-format
|
||||
msgid "Press key for '%s'"
|
||||
msgstr "Stlačte klávesu pre '%s'"
|
||||
msgstr "Stlačte tlačidlo pre funkciu '%s'"
|
||||
|
||||
msgid "Press 'Up' to confirm"
|
||||
msgstr "Pre potvrdenie stlačte klávesu 'Hore'"
|
||||
msgstr "Pre potvrdenie stlačte tlačidlo 'Hore'"
|
||||
|
||||
msgid "Press 'Down' to continue"
|
||||
msgstr "Pokračujete stlačením klávesy 'Dole' "
|
||||
msgstr "Pokračujete stlačením tlačidla 'Dole' "
|
||||
|
||||
msgid "(press 'Up' to go back)"
|
||||
msgstr "(Vrátite sa stlačením klávesy 'hore')"
|
||||
msgstr "(Vrátite sa stlačením tlačidla 'hore')"
|
||||
|
||||
msgid "(press 'Down' to end key definition)"
|
||||
msgstr "(Definovanie tlačítok ukončíte stlačením klávesy 'dole')"
|
||||
msgstr "(Definovanie tlačidiel ukončíte stlačením tlačidla 'dole')"
|
||||
|
||||
msgid "(press 'Menu' to skip this key)"
|
||||
msgstr "(stlačením 'Menu' preskočíte definíciu klávesy)"
|
||||
msgstr "(stlačením 'Menu' preskočíte definíciu tlačidla)"
|
||||
|
||||
msgid "Learning Remote Control Keys"
|
||||
msgstr "Určenie kódu diaľkového ovládania"
|
||||
msgstr "Programovanie diaľkového ovládania"
|
||||
|
||||
msgid "Phase 3: Saving key codes"
|
||||
msgstr "Fáza 3: Uloženie kódu"
|
||||
msgstr "Fáza 3: Uloženie kódu tlačidiel"
|
||||
|
||||
msgid "Press 'Up' to save, 'Down' to cancel"
|
||||
msgstr "Stlačením 'hore' uložíte, 'Dole' zrušíte"
|
||||
msgstr "Nastavenie stlačením tlačidla 'hore' uložíte, 'Dole' zrušíte"
|
||||
|
||||
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 "Prerušiť"
|
||||
msgstr "Pozastaviť"
|
||||
|
||||
msgid "Key$Stop"
|
||||
msgstr "Zastavi»"
|
||||
@ -432,10 +432,10 @@ msgid "Key$FastRew"
|
||||
msgstr "Pretoèi» spä»"
|
||||
|
||||
msgid "Key$Next"
|
||||
msgstr "Ďalej"
|
||||
msgstr "Nasledujúci"
|
||||
|
||||
msgid "Key$Prev"
|
||||
msgstr "Späť"
|
||||
msgstr "Predchádzajúci"
|
||||
|
||||
msgid "Key$Power"
|
||||
msgstr "Vypínaè"
|
||||
@ -465,7 +465,7 @@ msgid "Key$Subtitles"
|
||||
msgstr "Titulky"
|
||||
|
||||
msgid "Key$Schedule"
|
||||
msgstr "Program (EPG)"
|
||||
msgstr "Televízny program"
|
||||
|
||||
msgid "Key$Channels"
|
||||
msgstr "Kanály"
|
||||
@ -519,7 +519,7 @@ msgid "encrypted"
|
||||
msgstr "kódovaný"
|
||||
|
||||
msgid "Edit channel"
|
||||
msgstr "Úpravy kanálu"
|
||||
msgstr "Prispôsobiť kanál"
|
||||
|
||||
msgid "Name"
|
||||
msgstr "Názov"
|
||||
@ -564,13 +564,13 @@ msgid "Sid"
|
||||
msgstr "Sid"
|
||||
|
||||
msgid "Channel settings are not unique!"
|
||||
msgstr "Nastavenia kanálu nie sú obyčajné!"
|
||||
msgstr "Nastavenia kanálu nie sú výnimočné!"
|
||||
|
||||
msgid "Channels"
|
||||
msgstr "Kanály"
|
||||
|
||||
msgid "Button$Edit"
|
||||
msgstr "Úpravy"
|
||||
msgstr "Upraviť"
|
||||
|
||||
msgid "Button$New"
|
||||
msgstr "Nový"
|
||||
@ -616,7 +616,7 @@ msgid "Edit timer"
|
||||
msgstr "Úprava plánu nahrávania"
|
||||
|
||||
msgid "Active"
|
||||
msgstr "V činnosti"
|
||||
msgstr "Aktívny"
|
||||
|
||||
msgid "Channel"
|
||||
msgstr "Kanál"
|
||||
@ -625,10 +625,10 @@ msgid "Day"
|
||||
msgstr "Deò"
|
||||
|
||||
msgid "Start"
|
||||
msgstr "Začiatok"
|
||||
msgstr "Začína"
|
||||
|
||||
msgid "Stop"
|
||||
msgstr "Koniec"
|
||||
msgstr "Končí"
|
||||
|
||||
msgid "VPS"
|
||||
msgstr "VPS"
|
||||
@ -646,13 +646,13 @@ msgid "Button$Folder"
|
||||
msgstr "Zlo¾ka"
|
||||
|
||||
msgid "Button$Single"
|
||||
msgstr ""
|
||||
msgstr "bez opakovania"
|
||||
|
||||
msgid "Button$Repeating"
|
||||
msgstr ""
|
||||
msgstr "s opakovaním"
|
||||
|
||||
msgid "First day"
|
||||
msgstr "Prvý deň"
|
||||
msgstr "Odo dňa"
|
||||
|
||||
msgid "Select folder"
|
||||
msgstr "Vybra» zlo¾ku"
|
||||
@ -685,13 +685,13 @@ msgid "Button$Switch"
|
||||
msgstr "Prepnú»"
|
||||
|
||||
msgid "What's on now?"
|
||||
msgstr "Čo ide?"
|
||||
msgstr "Čo ide aktuálne?"
|
||||
|
||||
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 začiatok"
|
||||
msgstr "Od začiatku"
|
||||
|
||||
msgid "Recordings"
|
||||
msgstr "Nahrávky"
|
||||
@ -745,7 +745,7 @@ msgid "Delete recording?"
|
||||
msgstr "Zmaza» nahrávku?"
|
||||
|
||||
msgid "Recording is being edited - really delete?"
|
||||
msgstr ""
|
||||
msgstr "Nahrávka sa upravuje - Naozaj zmazať?"
|
||||
|
||||
msgid "Error while deleting recording!"
|
||||
msgstr "Pri vymazávaní nahrávky pri¹lo k chybe!"
|
||||
@ -835,7 +835,7 @@ msgid "Setup.OSD$Scroll pages"
|
||||
msgstr "Rolova» strany"
|
||||
|
||||
msgid "Setup.OSD$Scroll wraps"
|
||||
msgstr "Z konca na začiatok"
|
||||
msgstr "Rolovať cyklicky"
|
||||
|
||||
msgid "Setup.OSD$Menu key closes"
|
||||
msgstr "Klávesa Menu zaviera"
|
||||
@ -847,25 +847,25 @@ msgid "Setup.OSD$Folders in timer menu"
|
||||
msgstr "Zlo¾ky v menu plánovaèa"
|
||||
|
||||
msgid "Setup.OSD$Number keys for characters"
|
||||
msgstr "Číselné tlačidlá pre znaky"
|
||||
msgstr "Písať znaky číselnými tlačidlami"
|
||||
|
||||
msgid "Setup.OSD$Color key 0"
|
||||
msgstr ""
|
||||
msgstr "Farba klávesy 0"
|
||||
|
||||
msgid "Setup.OSD$Color key 1"
|
||||
msgstr ""
|
||||
msgstr "Farba klávesy 1"
|
||||
|
||||
msgid "Setup.OSD$Color key 2"
|
||||
msgstr ""
|
||||
msgstr "Farba klávesy 2"
|
||||
|
||||
msgid "Setup.OSD$Color key 3"
|
||||
msgstr ""
|
||||
msgstr "Farba klávesy 3"
|
||||
|
||||
msgid "EPG"
|
||||
msgstr "EPG"
|
||||
|
||||
msgid "Button$Scan"
|
||||
msgstr "Snímať"
|
||||
msgstr "Skenovať"
|
||||
|
||||
msgid "Setup.EPG$EPG scan timeout (h)"
|
||||
msgstr "Èasový limit pre snímanie EPG (h)"
|
||||
@ -880,7 +880,7 @@ msgid "Setup.EPG$Set system time"
|
||||
msgstr "Nastavi» systémový èas"
|
||||
|
||||
msgid "Setup.EPG$Use time from transponder"
|
||||
msgstr "Použiť čas z kanálu"
|
||||
msgstr "Použiť čas z transpondéru"
|
||||
|
||||
#. 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 "Formát videa"
|
||||
@ -985,10 +985,10 @@ msgstr "Horn
|
||||
|
||||
#, c-format
|
||||
msgid "Setup.LNB$Device %d connected to sat cable"
|
||||
msgstr ""
|
||||
msgstr "Zariadenie %d je pripojené na sat. kábel"
|
||||
|
||||
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 re¹tartova»!"
|
||||
|
||||
msgid "do not pause live video"
|
||||
msgstr "neprerušovať živé vysielanie"
|
||||
msgstr "nepozastavovať živé vysielanie"
|
||||
|
||||
msgid "confirm pause live video"
|
||||
msgstr "potvrdiť prerušenie živého vysielania"
|
||||
msgstr "potvrdiť pozastavenie živého vysielania"
|
||||
|
||||
msgid "pause live video"
|
||||
msgstr "prerušiť živé vysielanie"
|
||||
msgstr "pozastaviť živé vysielanie"
|
||||
|
||||
msgid "confirm"
|
||||
msgstr "overi»"
|
||||
@ -1078,7 +1078,7 @@ msgid "Setup.Recording$Instant rec. time (min)"
|
||||
msgstr "Då¾ka okam¾itého nahrávania (min)"
|
||||
|
||||
msgid "Setup.Recording$present event"
|
||||
msgstr ""
|
||||
msgstr "súčasná udalosť"
|
||||
|
||||
msgid "Setup.Recording$Max. video file size (MB)"
|
||||
msgstr "Maximálna veµkos» nahrávky (MB)"
|
||||
@ -1099,34 +1099,40 @@ msgid "Setup.Replay$Show replay mode"
|
||||
msgstr "Zobrazi» spôsob prehrávania"
|
||||
|
||||
msgid "Setup.Replay$Show remaining time"
|
||||
msgstr ""
|
||||
msgstr "Zobraziť zostávajúci čas"
|
||||
|
||||
msgid "Setup.Replay$Progress display time (s)"
|
||||
msgstr ""
|
||||
msgstr "Čas zobrazenia ukazovateľa priebehu (s)"
|
||||
|
||||
msgid "Setup.Replay$Pause replay when setting mark"
|
||||
msgstr ""
|
||||
msgstr "Pozastaviť prehrávanie pri stanovení značky"
|
||||
|
||||
msgid "Setup.Replay$Resume ID"
|
||||
msgstr "ID obnovenie"
|
||||
msgstr "ident. číslo obnovenia prehrávania"
|
||||
|
||||
msgid "Miscellaneous"
|
||||
msgstr "Rôzne"
|
||||
|
||||
msgid "Setup.Miscellaneous$Min. event timeout (min)"
|
||||
msgstr "Min. pauza medzi udalosťami (min)"
|
||||
msgstr "limit pred nahrávaním (min)"
|
||||
|
||||
msgid "Setup.Miscellaneous$Min. user inactivity (min)"
|
||||
msgstr "Časový limit nečinnosti (min)"
|
||||
msgstr "vymedziť užívateľskú nečinnosť (min)"
|
||||
|
||||
msgid "Setup.Miscellaneous$SVDRP timeout (s)"
|
||||
msgstr "Èasový limit SVDRP (s)"
|
||||
|
||||
msgid "Setup.Miscellaneous$Zap timeout (s)"
|
||||
msgstr "Časový limit Zap (s)"
|
||||
msgstr "pamätať predošlý kanál po ... (s)"
|
||||
|
||||
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
|
||||
msgstr "Čas pri voľbe kanála (ms)"
|
||||
msgstr "limit pri voľbe kanála (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 spustení"
|
||||
@ -1138,10 +1144,10 @@ msgid "Setup.Miscellaneous$Initial volume"
|
||||
msgstr "Hlasitos» po spustení"
|
||||
|
||||
msgid "Setup.Miscellaneous$Channels wrap"
|
||||
msgstr "Prepínať z prvého na posledný a opačne"
|
||||
msgstr "Kanály cyklovať pri prepnutí"
|
||||
|
||||
msgid "Setup.Miscellaneous$Show channel names with source"
|
||||
msgstr ""
|
||||
msgstr "Zobraziť kanály so zdrojom"
|
||||
|
||||
msgid "Setup.Miscellaneous$Emergency exit"
|
||||
msgstr "Núdzové ukonèenie"
|
||||
@ -1192,22 +1198,22 @@ msgid "Cancel editing?"
|
||||
msgstr "Zru¹i» ú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 "Málo volného miesta na nahrávanie!"
|
||||
|
||||
msgid "No free DVB device to record!"
|
||||
msgstr "Žiadna DVB karta nie je volná pre nahrávanie"
|
||||
msgstr "Pre nahrávanie nie je volné žiadne DVB zariadenie!"
|
||||
|
||||
msgid "Pausing live video..."
|
||||
msgstr "Prerušuje sa bežiaci program ..."
|
||||
msgstr "Pozastavuje sa živé vysielanie ..."
|
||||
|
||||
msgid "Delete timeshift recording?"
|
||||
msgstr "Vymaza» timeshift záznamy?"
|
||||
@ -1217,19 +1223,19 @@ msgid "Jump: "
|
||||
msgstr "Skok: "
|
||||
|
||||
msgid "No editing marks defined!"
|
||||
msgstr "Nie sú určené značky úprav!"
|
||||
msgstr "Neboli vyznačené značky pre zostrihanie!"
|
||||
|
||||
msgid "No editing sequences defined!"
|
||||
msgstr ""
|
||||
msgstr "Neboli určené sekvencie úprav!"
|
||||
|
||||
msgid "Can't start editing process!"
|
||||
msgstr "Nemôže začať spracovanie úprav!"
|
||||
msgstr "Nemôže začať zostrihanie!"
|
||||
|
||||
msgid "Editing process started"
|
||||
msgstr "Spracovanie úprav začalo"
|
||||
msgstr "Proces strihania sa spustil"
|
||||
|
||||
msgid "Editing process already active!"
|
||||
msgstr "Spracovanie úprav je v činnosti!"
|
||||
msgstr "Proces zostrihania je aktívny!"
|
||||
|
||||
msgid "FileNameChars$ abcdefghijklmnopqrstuvwxyz0123456789-.,#~\\^$[]|()*+?{}/:%@&"
|
||||
msgstr " aáäbcèdïeéfghiíjklåµmnòoóôpqràs¹t»uúvwxyýz¾0123456789-.,#~\\^$[]|()*+?{}/:%@&"
|
||||
@ -1256,22 +1262,22 @@ msgid "Channel locked (recording)!"
|
||||
msgstr "Kanál je zamknutý (nahráva sa)!"
|
||||
|
||||
msgid "Low disk space!"
|
||||
msgstr "Za chvíľku bude plný disk!"
|
||||
msgstr "Nedostatok miesta na disku!"
|
||||
|
||||
msgid "Regenerating index file"
|
||||
msgstr "Regeneračný indexový súbor"
|
||||
msgstr "Obnova indexového súboru"
|
||||
|
||||
msgid "Index file regeneration complete"
|
||||
msgstr "Regenerácia indexového súboru hotová"
|
||||
msgstr "Obnova indexového súboru hotová"
|
||||
|
||||
msgid "Index file regeneration failed!"
|
||||
msgstr ""
|
||||
msgstr "Obnova indexového súboru zlyhala!"
|
||||
|
||||
msgid "Can't shutdown - option '-s' not given!"
|
||||
msgstr "Vypnutie nie je mo¾né - chýba voµba '-s'!"
|
||||
|
||||
msgid "Editing - shut down anyway?"
|
||||
msgstr "Upravujem - aj tak vypnúť?"
|
||||
msgstr "Zostriháva sa - aj tak vypnúť?"
|
||||
|
||||
msgid "Recording - shut down anyway?"
|
||||
msgstr "Nahráva - aj tak vypnú»?"
|
||||
@ -1281,11 +1287,11 @@ msgid "Recording in %ld minutes, shut down anyway?"
|
||||
msgstr "Nahrávanie zaène za %ld minút - aj tak vypnú»?"
|
||||
|
||||
msgid "shut down anyway?"
|
||||
msgstr "Aj tak vypnúť?"
|
||||
msgstr "Určite vypnúť?"
|
||||
|
||||
#, c-format
|
||||
msgid "Plugin %s wakes up in %ld min, continue?"
|
||||
msgstr "Modul %s štartuje za %ld min., pokračovať?"
|
||||
msgstr "Modul %s sa prebudí za %ld min., pokračovať?"
|
||||
|
||||
msgid "Editing - restart anyway?"
|
||||
msgstr "Upravuje sa - aj tak re¹tartova»?"
|
||||
@ -1294,7 +1300,7 @@ msgid "Recording - restart anyway?"
|
||||
msgstr "Nahráva - aj tak re¹tartova»?"
|
||||
|
||||
msgid "restart anyway?"
|
||||
msgstr "Aj tak reštartovať?"
|
||||
msgstr "Určite reštartovať?"
|
||||
|
||||
#. 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 "ZAŤAŽENIE"
|
||||
|
||||
msgid "TIMERS"
|
||||
msgstr ""
|
||||
msgstr "PLÁNY"
|
||||
|
||||
msgid "DEVICES"
|
||||
msgstr ""
|
||||
msgstr "ZARIADENIA"
|
||||
|
||||
msgid "LIVE"
|
||||
msgstr ""
|
||||
msgstr "NAŽIVO"
|
||||
|
||||
msgid "PLAY"
|
||||
msgstr ""
|
||||
msgstr "PREHRÁVA SA"
|
||||
|
||||
msgid "ST:TNG Panels"
|
||||
msgstr "ST:TNG panely"
|
||||
@ -1363,7 +1369,7 @@ msgid "Recording started"
|
||||
msgstr "Zaèalo nahrávanie"
|
||||
|
||||
msgid "VDR will shut down later - press Power to force"
|
||||
msgstr "Vypnutie VDR bude odložené - platnosť potvrdte klávesou Power"
|
||||
msgstr "VDR sa vypne neskoršie. - Vynútenie potvrdte klávesou Power"
|
||||
|
||||
msgid "Press any key to cancel shutdown"
|
||||
msgstr "Ktorákoµvek klávesa zru¹í vypnutie"
|
||||
@ -1372,10 +1378,10 @@ msgid "Switching primary DVB..."
|
||||
msgstr "Prepína hlavný DVB..."
|
||||
|
||||
msgid "Editing process failed!"
|
||||
msgstr "Spracovanie úprav zlyhalo!"
|
||||
msgstr "Zostrihávanie zlyhalo!"
|
||||
|
||||
msgid "Editing process finished"
|
||||
msgstr "Spracovanie úprav skončilo"
|
||||
msgstr "Proces zostrihávania dokončený"
|
||||
|
||||
msgid "Press any key to cancel restart"
|
||||
msgstr "ktorákoµvek klávesa zru¹í re¹tart"
|
||||
@ -1388,4 +1394,4 @@ msgid "Disk"
|
||||
msgstr "Disk"
|
||||
|
||||
msgid "free"
|
||||
msgstr "volne"
|
||||
msgstr "voľné"
|
||||
|
@ -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 "
|
||||
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"
|
||||
|
||||
|
@ -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 isti
|
||||
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
|
||||
msgstr "Upis kanala istièe (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 "Poèetni kanal"
|
||||
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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 Yolgeçen <oktay_73@yahoo.de>\n"
|
||||
"Language-Team: Turkish <vdr@linuxtv.org>\n"
|
||||
@ -1128,6 +1128,12 @@ msgstr "Zaping zaman a
|
||||
msgid "Setup.Miscellaneous$Channel entry timeout (ms)"
|
||||
msgstr "Kanal giriþ zaman aþýmý (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 "Açýlýþdaki kanal"
|
||||
|
||||
|
@ -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 "Канал при включенні"
|
||||
|
||||
|
@ -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 "初始频道"
|
||||
|
||||
|
151
recording.c
151
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;
|
||||
}
|
||||
else if (isPesRecording)
|
||||
ConvertFromPes(index, size);
|
||||
if (!index || time(NULL) - buf.st_mtime >= MININDEXAGE) {
|
||||
close(f);
|
||||
f = -1;
|
||||
}
|
||||
// we don't close f here, see CatchUp()!
|
||||
else if (isPesRecording)
|
||||
ConvertFromPes(index, size);
|
||||
// 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;
|
||||
|
@ -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);
|
||||
|
63
remote.c
63
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);
|
||||
if (Command) {
|
||||
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;
|
||||
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;
|
||||
}
|
||||
if (Command) {
|
||||
if (Command == LastCommand)
|
||||
Repeat = true;
|
||||
if (rawMode || !Put(Command, Repeat)) {
|
||||
int func = MapCodeToFunc(Command);
|
||||
if (func)
|
||||
Put(KBDKEY(func));
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
3
remote.h
3
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();
|
||||
|
42
skinlcars.c
42
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) {
|
||||
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)
|
||||
|
26
timers.c
26
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))
|
||||
|
4
timers.h
4
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:
|
||||
|
20
vdr.1
20
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.
|
||||
|
78
vdr.c
78
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;
|
||||
@ -326,7 +365,6 @@ int main(int argc, char *argv[])
|
||||
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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user