diff options
-rw-r--r-- | HISTORY | 9 | ||||
-rw-r--r-- | Makefile | 170 | ||||
-rw-r--r-- | control-image.c | 2 | ||||
-rw-r--r-- | data-image.h | 2 | ||||
-rw-r--r-- | image.c | 4 | ||||
-rw-r--r-- | image.h | 3 | ||||
-rw-r--r-- | liboutput/encode.c | 28 | ||||
-rw-r--r-- | liboutput/encode.h | 4 | ||||
-rw-r--r-- | player-image.c | 6 | ||||
-rw-r--r-- | player-image.h | 8 | ||||
-rw-r--r-- | po/ca_ES.po | 7 | ||||
-rw-r--r-- | po/cs_CZ.po | 7 | ||||
-rw-r--r-- | po/da_DK.po | 7 | ||||
-rw-r--r-- | po/de_DE.po | 7 | ||||
-rw-r--r-- | po/el_GR.po | 7 | ||||
-rw-r--r-- | po/es_ES.po | 7 | ||||
-rw-r--r-- | po/et_EE.po | 7 | ||||
-rw-r--r-- | po/fi_FI.po | 7 | ||||
-rw-r--r-- | po/fr_FR.po | 7 | ||||
-rw-r--r-- | po/hr_HR.po | 7 | ||||
-rw-r--r-- | po/hu_HU.po | 7 | ||||
-rw-r--r-- | po/it_IT.po | 7 | ||||
-rw-r--r-- | po/nl_NL.po | 7 | ||||
-rw-r--r-- | po/nn_NO.po | 7 | ||||
-rw-r--r-- | po/pl_PL.po | 7 | ||||
-rw-r--r-- | po/pt_PT.po | 7 | ||||
-rw-r--r-- | po/ro_RO.po | 7 | ||||
-rw-r--r-- | po/ru_RU.po | 7 | ||||
-rw-r--r-- | po/sl_SI.po | 7 | ||||
-rw-r--r-- | po/sv_SE.po | 7 | ||||
-rw-r--r-- | po/tr_TR.po | 7 | ||||
-rw-r--r-- | setup-image.c | 7 | ||||
-rw-r--r-- | setup-image.h | 3 |
33 files changed, 250 insertions, 143 deletions
@@ -1,6 +1,15 @@ VDR Plugin 'image' Revision History ----------------------------------- +2013-02-11 +- Release Version 0.3.3 +- Various Makefile fixes for VDR > 1.7.36 + +2013-02-02 +- Release Version 0.3.2 +- Support for VDR > 1.7.35 +- Compiles with recent ffmpeg + 2011-03-19 - Release Version 0.3.1 - Adjust to compile plugin with VDR >= 1.7.17 @@ -2,6 +2,7 @@ # Makefile for Image plugin to VDR # # (C) 2004-2011 Andreas Brachold <vdr07 at deltab.de> +# 2013 Ulrich Eckhardt # # This code is distributed under the terms and conditions of the # GNU GENERAL PUBLIC LICENSE. See the file COPYING for details. @@ -10,8 +11,6 @@ # You can change the compile options here or create a Make.config # in the VDR directory an set them there. # -# $Id$ -# ### uncomment the following line, if you don't have libexif installed @@ -26,43 +25,49 @@ # PLUGIN = image -### The C++ compiler and options: - -CXX ?= g++ -CXXFLAGS ?= -fPIC -O2 -Wall -Woverloaded-virtual -PKG-CONFIG ?= pkg-config +#### The version number of this plugin (taken from the main source file): -############################################### -############################################### -# -# no user configurable options below this point -# -############################################### -############################################### +VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g') ### The directory environment: -VDRDIR = ../../.. -LIBDIR = ../../lib -TMPDIR = /tmp +# Use package data if installed...otherwise assume we're under the VDR source directory: +PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc)) +LIBDIR = $(call PKGCFG,libdir) +LOCDIR = $(call PKGCFG,locdir) +CFGDIR = $(call PKGCFG,configdir)/plugins/$(PLUGIN) +PLGCFG = $(call PKGCFG,plgcfg) +# +TMPDIR ?= /tmp -### Allow user defined options to overwrite defaults: +### The compiler options: --include $(VDRDIR)/Make.config +export CFLAGS = $(call PKGCFG,cflags) +export CXXFLAGS = $(call PKGCFG,cxxflags) -### The version number of this plugin (taken from the main source file): +### The version number of VDR's plugin API (taken from VDR's "config.h"): -VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ print $$6 }' | sed -e 's/[";]//g') +APIVERSION = $(call PKGCFG,apiversion) -### The version number of VDR (taken from VDR's "config.h"): +### Allow user defined options to overwrite defaults: -APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g') +-include $(PLGCFG) ### The name of the distribution archive: ARCHIVE = $(PLUGIN)-$(VERSION) PACKAGE = vdr-$(ARCHIVE) +### The name of the shared object file: + +SOFILE = libvdr-$(PLUGIN).so + +### Includes and Defines (add further entries here): + +INCLUDES += -I$(VDRDIR)/include -I. +DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' +CXXFLAGS +=-D__STDC_CONSTANT_MACROS + ### The version number of ffmpeg (taken from "libavcodec/avcodec.h" ): ifdef FFMDIR @@ -72,46 +77,50 @@ endif ### Includes and Defines (add further entries here): - -DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DEFINES += -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS LIBS += liboutput/liboutput.a libimage/libimage.a -INCLUDES += -I$(VDRDIR)/include -I. - -ifdef FFMDIR -DEFINES += -DFFMDIR -LIBS += -L$(FFMDIR)/libavcodec -lavcodec -lz -ifeq ($(LIBAVCODECVERSION),51) -LIBS += -L$(FFMDIR)/libavformat -L$(FFMDIR)/libavutil -LIBS += -lavformat -lavutil +ifneq (exists, $(shell pkg-config libavcodec && echo exists)) + $(warning ******************************************************************) + $(warning 'libavcodec' not detected! ') + $(warning ******************************************************************) endif -ifndef WITHOUT_SWSCALER - DEFINES += -DHAVE_SWSCALER - LIBS += -L$(FFMDIR)/libswscale -lswscale -endif -else - PKG-LIBS += libavcodec - PKG-INCLUDES += libavcodec -ifndef WITHOUT_SWSCALER - PKG-INCLUDES += libswscale - PKG-LIBS += libswscale + +ifneq (exists, $(shell pkg-config libavformat && echo exists)) + $(warning ******************************************************************) + $(warning 'libavformat' not detected! ') + $(warning ******************************************************************) endif + +ifneq (exists, $(shell pkg-config libswscale && echo exists)) + $(warning ******************************************************************) + $(warning 'libswscale' not detected! ') + $(warning ******************************************************************) + WITHOUT_SWSCALER = 1 endif -ifndef WITHOUT_LIBEXIF - PKG-INCLUDES += libexif - PKG-LIBS += libexif - DEFINES += -DHAVE_LIBEXIF +ifneq (exists, $(shell pkg-config libexif && echo exists)) + $(warning ******************************************************************) + $(warning 'libexif' not detected! ') + $(warning ******************************************************************) + WITHOUT_LIBEXIF=1 endif +LIBS += $(shell pkg-config --libs libavformat) +CXXFLAGS += $(shell pkg-config --cflags libavformat) + +LIBS += $(shell pkg-config --libs libavcodec) +CXXFLAGS += $(shell pkg-config --cflags libavcodec) -ifdef PKG-INCLUDES -INCLUDES += $(shell $(PKG-CONFIG) --cflags $(PKG-INCLUDES)) +ifndef WITHOUT_SWSCALER + DEFINES += -DHAVE_SWSCALER + LIBS += $(shell pkg-config --libs libswscale) + CXXFLAGS += $(shell pkg-config --cflags libswscale) endif -ifdef PKG-LIBS -LIBS += $(shell $(PKG-CONFIG) --libs $(PKG-LIBS)) +ifndef WITHOUT_LIBEXIF + CXXFLAGS += $(shell pkg-config --cflags libexif) + LIBS += $(shell pkg-config --libs libexif) + DEFINES += -DHAVE_LIBEXIF endif ### The object files (add further files here): @@ -129,54 +138,59 @@ endif SUBDIRS = liboutput libimage +### The main target: + +all: subdirs $(SOFILE) i18n + ### Implicit rules: %.o: %.c - $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< - -# Dependencies: + $(CXX) $(CXXFLAGS) $(CEXTRA) -c $(DEFINES) $(INCLUDES) $< + +### Dependencies: MAKEDEP = $(CXX) -MM -MG DEPFILE = .dependencies $(DEPFILE): Makefile - @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ + @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) *.h > $@ -include $(DEPFILE) ### Internationalization (I18N): PODIR = po -LOCALEDIR = $(VDRDIR)/locale I18Npo = $(wildcard $(PODIR)/*.po) -I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) +I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file)))) +I18Nmsgs = $(addprefix $(DESTDIR)$(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) I18Npot = $(PODIR)/$(PLUGIN).pot %.mo: %.po - msgfmt -c -o $@ $< + msgfmt -v -c -o $@ $< -$(I18Npot): $(wildcard *.c) - xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='Andreas Brachold <vdr07 at deltab.de>' -o $@ $^ +$(I18Npot): $(wildcard *.c *.h) + xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --package-name=vdr-$(PLUGIN) --package-version=$(VERSION) --msgid-bugs-address='<see README>' -o $@ `ls $^` %.po: $(I18Npot) - msgmerge -U --no-wrap --no-location --backup=none -q $@ $< + msgmerge -U --no-wrap --no-location --backup=none -q -N $@ $< @touch $@ -$(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo - @mkdir -p $(dir $@) - cp $< $@ +$(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo + install -D -m644 $< $@ .PHONY: i18n -i18n: $(I18Nmsgs) +i18n: $(I18Nmo) $(I18Npot) + +install-i18n: $(I18Nmsgs) ### Targets: -all: subdirs libvdr-$(PLUGIN).so i18n +$(SOFILE): $(OBJS) + $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@ -libvdr-$(PLUGIN).so: $(OBJS) - $(CXX) $(CXXFLAGS) -shared -export-dynamic $(OBJS) $(LIBS) -o $@ - @mkdir -p $(LIBDIR) - @cp $@ $(LIBDIR)/$@.$(APIVERSION) +install-lib: $(SOFILE) + install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION) +install: install-lib install-i18n subdirs: @for i in $(SUBDIRS) ;\ @@ -187,17 +201,17 @@ subdirs: || exit 1;\ done -dist: clean +dist: $(I18Npo) clean @-rm -rf $(TMPDIR)/$(ARCHIVE) @mkdir $(TMPDIR)/$(ARCHIVE) @cp -a * $(TMPDIR)/$(ARCHIVE) - @chmod 644 -R $(TMPDIR)/$(ARCHIVE)/* - @find $(TMPDIR)/$(ARCHIVE) -name "*.sh" -exec chmod a+x {} \; - @find $(TMPDIR)/$(ARCHIVE) -type d -exec chmod 755 {} \; + @-rm -rf $(TMPDIR)/$(ARCHIVE)/.git + @-rm -f $(TMPDIR)/$(ARCHIVE)/.gitignore @chown root.root -R $(TMPDIR)/$(ARCHIVE)/* - @tar czf $(PACKAGE).tar.gz --exclude=.svn -C $(TMPDIR) $(ARCHIVE) + @tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE) @-rm -rf $(TMPDIR)/$(ARCHIVE) - @echo Distribution package created as $(PACKAGE).tar.gz + @echo Distribution package created as $(PACKAGE).tgz + subdirs-clean: @for i in $(SUBDIRS) ;\ @@ -210,4 +224,4 @@ subdirs-clean: clean: subdirs-clean @-rm -f $(PODIR)/*.mo $(PODIR)/*.pot - @-rm -f $(OBJS) $(DEPFILE) *.so *.tar.gz core* *~ contrib/*~ examples/*~ scripts/*~ + @-rm -f $(OBJS) $(DEPFILE) *.so *.tgz core* *~ contrib/*~ examples/*~ scripts/*~ diff --git a/control-image.c b/control-image.c index 8983a4d..a4465c8 100644 --- a/control-image.c +++ b/control-image.c @@ -342,9 +342,7 @@ eOSState cImageControl::ProcessKeyPlayMode(eKeys nKey) switch (nKey & ~k_Repeat) { // Change time how long image is see - case k4|k_Repeat: case k4: DecSlideTime(); return osContinue; - case k6|k_Repeat: case k6: IncSlideTime(); return osContinue; } diff --git a/data-image.h b/data-image.h index 3878fd1..1e4a083 100644 --- a/data-image.h +++ b/data-image.h @@ -36,12 +36,12 @@ class cImageData int m_nDefaultRotate; #endif protected: - void Unlink(const char *szName); void Clear(void); public: cImageData(const char *szName, cFileSource * pSource); virtual ~cImageData(); bool CompareBaseDir(const cFileSource * pSource) const; + static void Unlink(const char *szName); inline const char *Name(void) const { @@ -7,7 +7,7 @@ * (C) 2004 A. Holzhammer for the massive script updates * (C) 2004-2011 Andreas Brachold <vdr07 at deltab.de> * - * based on mp3/mplayer plugin by Stefan Hülswitt <huels at iname.com> + * based on mp3/mplayer plugin by Stefan Hülswitt <huels at iname.com> * * This code is distributed under the terms and conditions of the * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details. @@ -26,7 +26,7 @@ #include "commands.h" #include "liboutput/encode.h" -static const char *VERSION = "0.3.1"; +static const char *VERSION = "0.3.3"; class cPluginImage : public cPlugin { cDirItem* m_pServiceDirItem; @@ -16,10 +16,11 @@ #include <vdr/skins.h> #include <string.h> +#ifdef APIVERSNUM #if APIVERSNUM < 10347 #error "For compiled are at the least VDR Plugin-API 1.3.47 required" #endif - +#endif inline void OSD_InfoMsg(const char* sz) { diff --git a/liboutput/encode.c b/liboutput/encode.c index 6098ab0..549f440 100644 --- a/liboutput/encode.c +++ b/liboutput/encode.c @@ -49,13 +49,8 @@ cEncode::cEncode(unsigned int nNumberOfFramesToEncode) bool cEncode::Register() { - avcodec_init(); -#if 0 - // XXX to resolv: dosen't work with osdpip - register_avcodec(&mpeg2video_encoder); -#else + av_register_all(); avcodec_register_all(); -#endif m_pavCodec = avcodec_find_encoder(CODEC_ID_MPEG2VIDEO); if (!m_pavCodec) { @@ -100,7 +95,7 @@ bool cEncode::Encode() AVCodecContext *pAVCC = NULL; AVFrame *pAVF = NULL; - pAVCC = avcodec_alloc_context(); + pAVCC = avcodec_alloc_context3(m_pavCodec); if (! pAVCC) { esyslog("imageplugin: Failed to alloc memory for AVCodecContext."); @@ -116,7 +111,7 @@ bool cEncode::Encode() { SetupEncodingParameters(pAVCC); - if (avcodec_open(pAVCC, m_pavCodec) < 0) + if (avcodec_open2(pAVCC, m_pavCodec, NULL) < 0) { esyslog("imageplugin: Couldn't open Codec."); } @@ -142,7 +137,7 @@ void cEncode::SetupEncodingParameters(AVCodecContext *context) context->height = m_nHeight; #if LIBAVCODEC_BUILD >= 4754 - context->time_base=(AVRational){1, GetFrameRate()}; + context->time_base=(AVRational){1, (int)GetFrameRate()}; #else context->frame_rate=GetFrameRate(); context->frame_rate_base=1; @@ -216,6 +211,8 @@ bool cEncode::ConvertImageToFrame(AVFrame *frame) bool cEncode::EncodeFrames(AVCodecContext *context, AVFrame *frame) { + AVPacket outpkt; + int got_output; if(!m_pFrameSizes) { esyslog("imageplugin: Failed to add MPEG sequence, insufficient memory."); @@ -223,23 +220,24 @@ bool cEncode::EncodeFrames(AVCodecContext *context, AVFrame *frame) } unsigned int i; - + av_init_packet(&outpkt); m_nMPEGSize = 0; // Encode m_nNumberOfFramesToEncode number of frames for(i=0; (i < m_nNumberOfFramesToEncode) && (m_nMPEGSize < m_nMaxMPEGSize); ++i) { - int nFrameSize = avcodec_encode_video(context, m_pMPEG + m_nMPEGSize, - m_nMaxMPEGSize - m_nMPEGSize, frame); - if(nFrameSize < 0) + outpkt.data = ( m_pMPEG + m_nMPEGSize); + outpkt.size = m_nMaxMPEGSize - m_nMPEGSize; + int err = avcodec_encode_video2(context, &outpkt,frame, &got_output); + if(err < 0) { esyslog("imageplugin: Failed to add frame %d, insufficient memory.", i); return false; } - m_nMPEGSize += nFrameSize; - *(m_pFrameSizes + i) = nFrameSize; + m_nMPEGSize += outpkt.size; + *(m_pFrameSizes + i) = outpkt.size; } // Add four bytes MPEG end sequence diff --git a/liboutput/encode.h b/liboutput/encode.h index db7f122..6c47b63 100644 --- a/liboutput/encode.h +++ b/liboutput/encode.h @@ -14,6 +14,10 @@ extern "C" { #include <libavcodec/avcodec.h> +#include <libavformat/avformat.h> +#ifdef HAVE_SWSCALE +# include <libswscale/swscale.h> +#endif } #include "../setup-image.h" diff --git a/player-image.c b/player-image.c index b7b4ff4..c476ea3 100644 --- a/player-image.c +++ b/player-image.c @@ -24,6 +24,7 @@ #include "image.h" #include "list.h" #include <vdr/i18n.h> +#include <vdr/status.h> #include "libimage/pnm.h" #include "libimage/xpm.h" @@ -307,6 +308,9 @@ void cImagePlayer::LoadImage(cShellWrapper* pShell) } } fclose(f); + if (ImageSetup.m_bRemoveImmediately) { + cImageData::Unlink (pShell->szPNM); + } } } if(!bSuccess) { @@ -440,6 +444,8 @@ bool cImagePlayer::Worker(bool bDoIt) return bQueueEmpty; } + // cStatus::MsgReplaying(this, "Image", pShell->szPNM, true ); + if(pShell->szCmd) { //dsyslog("imageplugin: executing script '%s'", pShell->szCmd); diff --git a/player-image.h b/player-image.h index c58da6a..d307778 100644 --- a/player-image.h +++ b/player-image.h @@ -27,16 +27,22 @@ struct cShellWrapper { char* szCmd; char* szPNM; char szNumber; - bool bClearBackground; unsigned int nOffLeft; unsigned int nOffTop; unsigned int nWidth; unsigned int nHeight; + bool bClearBackground; cShellWrapper() : szCmd(NULL) , szPNM(NULL) , szNumber('\0') + , nOffLeft(0) + , nOffTop(0) + , nWidth(0) + , nHeight(0) + , bClearBackground(false) + { } diff --git a/po/ca_ES.po b/po/ca_ES.po index 2a28bf8..8b64001 100644 --- a/po/ca_ES.po +++ b/po/ca_ES.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/cs_CZ.po b/po/cs_CZ.po index b645bd5..db6f694 100644 --- a/po/cs_CZ.po +++ b/po/cs_CZ.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/da_DK.po b/po/da_DK.po index 01567f8..735e1e7 100644 --- a/po/da_DK.po +++ b/po/da_DK.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/de_DE.po b/po/de_DE.po index 24b2539..ede147f 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: Andreas Brachold <anbr at users.berlios.de>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "Live Audio vom primären Gerät" msgid "Directory with temporary files" msgstr "Verzeichnis mit temporären Dateien" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "Lösche temporäre Dateien" diff --git a/po/el_GR.po b/po/el_GR.po index d883678..b6dbf79 100644 --- a/po/el_GR.po +++ b/po/el_GR.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/es_ES.po b/po/es_ES.po index b2cea82..b6f993b 100644 --- a/po/es_ES.po +++ b/po/es_ES.po @@ -23,8 +23,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: Jesús Bravo Álvarez <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -153,6 +153,9 @@ msgstr "Usar audio del dispositivo primario" msgid "Directory with temporary files" msgstr "Directorio para ficheros temporales" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "Borrar los ficheros temporales" diff --git a/po/et_EE.po b/po/et_EE.po index 0756e35..4eea446 100644 --- a/po/et_EE.po +++ b/po/et_EE.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/fi_FI.po b/po/fi_FI.po index 6c93666..9155a89 100644 --- a/po/fi_FI.po +++ b/po/fi_FI.po @@ -23,8 +23,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: Rolf Ahrenberg <rahrenbe at cc.hut.fi>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -153,6 +153,9 @@ msgstr "Live-ääni ensisijaiselta sovittimelta" msgid "Directory with temporary files" msgstr "Väliaikaistiedostot" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "Tyhjennä väliaikaistiedostot" diff --git a/po/fr_FR.po b/po/fr_FR.po index e9de55a..e5f347e 100644 --- a/po/fr_FR.po +++ b/po/fr_FR.po @@ -23,8 +23,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: NIVAL Michaël <mnival at club-internet.fr>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -153,6 +153,9 @@ msgstr "Audio en direct" msgid "Directory with temporary files" msgstr "Répertoire temporaire" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "Effacer les fichiers temporaires" diff --git a/po/hr_HR.po b/po/hr_HR.po index 0b879cd..d129fff 100644 --- a/po/hr_HR.po +++ b/po/hr_HR.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/hu_HU.po b/po/hu_HU.po index 73d03cb..074b8ac 100644 --- a/po/hu_HU.po +++ b/po/hu_HU.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/it_IT.po b/po/it_IT.po index 89a437c..e198e10 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2008-08-13 22:17+0100\n" "Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "Audio dal vivo scheda primaria" msgid "Directory with temporary files" msgstr "Directory file temporanei" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "Rimuovi file temporanei" diff --git a/po/nl_NL.po b/po/nl_NL.po index 3168a13..1e1e2ac 100644 --- a/po/nl_NL.po +++ b/po/nl_NL.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "Leef Audio van primair Apparaat" msgid "Directory with temporary files" msgstr "Folder met tijdelijke dossiers" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "Verwijder tijdelijke dossiers" diff --git a/po/nn_NO.po b/po/nn_NO.po index 281b9e7..fadf024 100644 --- a/po/nn_NO.po +++ b/po/nn_NO.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/pl_PL.po b/po/pl_PL.po index b556739..1101b95 100644 --- a/po/pl_PL.po +++ b/po/pl_PL.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/pt_PT.po b/po/pt_PT.po index 95b32ac..49332ff 100644 --- a/po/pt_PT.po +++ b/po/pt_PT.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "Áudio vivo do dispositivo preliminar" msgid "Directory with temporary files" msgstr "Diretório com limas provisórias" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "Remova as limas provisórias" diff --git a/po/ro_RO.po b/po/ro_RO.po index 1af226b..3c86799 100644 --- a/po/ro_RO.po +++ b/po/ro_RO.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/ru_RU.po b/po/ru_RU.po index 6337913..46bd78e 100644 --- a/po/ru_RU.po +++ b/po/ru_RU.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "¸áßÞÛì×ÞÒÐâì ÐÚâØÒÝÞÕ(Live) ×ÒãÚÞÒÞÕ áÞßàÞÒÞÖÔÕÝØÕ" msgid "Directory with temporary files" msgstr "¼À ÔØàÕÚâÞàØï" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "áâØàÐÝØÕ tmp äÐÙÛÞÒ" diff --git a/po/sl_SI.po b/po/sl_SI.po index a697c26..9258579 100644 --- a/po/sl_SI.po +++ b/po/sl_SI.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/sv_SE.po b/po/sv_SE.po index c54e4c5..db0e476 100644 --- a/po/sv_SE.po +++ b/po/sv_SE.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "" msgid "Directory with temporary files" msgstr "" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "" diff --git a/po/tr_TR.po b/po/tr_TR.po index af12093..25f17bf 100644 --- a/po/tr_TR.po +++ b/po/tr_TR.po @@ -22,8 +22,8 @@ msgid "" msgstr "" "Project-Id-Version: vdr-image 0.3.0\n" -"Report-Msgid-Bugs-To: Andreas Brachold <vdr07 at deltab.de>\n" -"POT-Creation-Date: 2011-10-02 21:56+0200\n" +"Report-Msgid-Bugs-To: <see README>\n" +"POT-Creation-Date: 2013-02-12 18:44+0100\n" "PO-Revision-Date: 2007-08-18 08:13+0200\n" "Last-Translator: Oktay Yolgeçen <oktay_73 at yahoo.de>\n" "Language-Team: <vdr at linuxtv.org>\n" @@ -152,6 +152,9 @@ msgstr "Primer aygýtdan naklen audio" msgid "Directory with temporary files" msgstr "Geçici dosyalý klasör" +msgid "Remove temporary files immediately" +msgstr "" + msgid "Remove temporary files" msgstr "Geçici dosyalarý sil" diff --git a/setup-image.c b/setup-image.c index 92c9317..bc9bc2e 100644 --- a/setup-image.c +++ b/setup-image.c @@ -45,6 +45,7 @@ cImageSetup::cImageSetup(void) m_bLiveAudio = 0; m_bHousekeeping = 1; m_bUseDeviceStillPicture = 1; + m_bRemoveImmediately = false; m_nBorderHeight = 16; m_nBorderWidth = 16; @@ -73,6 +74,7 @@ bool cImageSetup::SetupParse(const char *szName, const char *szValue) else ParseInteger("Housekeeping", m_bHousekeeping,0,1) else ParseInteger("HideMainMenu", m_bHideMenu,0,1) else ParseInteger("UseDeviceStillPicture", m_bUseDeviceStillPicture,0,1) + else ParseInteger("RemoveImmediately", m_bRemoveImmediately,0,1) else if(!strcasecmp(szName, "TempDir")) { strn0cpy(m_szTempDir,szValue,sizeof(m_szTempDir)); } @@ -95,6 +97,7 @@ void cMenuSetupImage::Store(void) SetupStore("BorderWidth", ImageSetup.m_nBorderWidth); SetupStore("HideMainMenu", ImageSetup.m_bHideMenu); SetupStore("UseDeviceStillPicture", ImageSetup.m_bUseDeviceStillPicture); + SetupStore("RemoveImmediately", ImageSetup.m_bRemoveImmediately); } cMenuSetupImage::cMenuSetupImage(void) @@ -134,6 +137,10 @@ cMenuSetupImage::cMenuSetupImage(void) m_tmpSetup.m_szTempDir,sizeof(m_tmpSetup.m_szTempDir), "abcdefghijklmopqrstuvwxyz/-")); + Add(new cMenuEditBoolItem(tr("Remove temporary files immediately"), + &m_tmpSetup.m_bRemoveImmediately, + trVDR("no"), trVDR("yes"))); + Add(new cMenuEditBoolItem(tr("Remove temporary files"), &m_tmpSetup.m_bHousekeeping, trVDR("no"), trVDR("yes"))); diff --git a/setup-image.h b/setup-image.h index a7d0f0d..c6a533d 100644 --- a/setup-image.h +++ b/setup-image.h @@ -38,7 +38,8 @@ public: int m_bLiveAudio; /* Activate own house keeping system for temp. files, avoid pregenerated images */ int m_bHousekeeping; - + /* Remove temp files immediately */ + int m_bRemoveImmediately; /* Use as output DeviceStillPicture */ int m_bUseDeviceStillPicture; |