From 4f621752277b0c478add4ffd4c708478e8d7cf9c Mon Sep 17 00:00:00 2001 From: austriancoder Date: Sat, 18 Sep 2004 12:49:02 +0000 Subject: you can set now logpath in makefile --- HISTORY | 6 +++++- INSTALL | 5 ++++- Makefile | 5 ++++- dxr3log.c | 6 +++++- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/HISTORY b/HISTORY index b277978..27ad571 100644 --- a/HISTORY +++ b/HISTORY @@ -245,4 +245,8 @@ NOTE: I havent found time to include all of the languages, will be done in pre2 - added functions to read and write registers directly with the plugin - added basic dolby digital interface - you can configure microcode path in Makefile - thanks to Sascha Volkenandt -- fixed DVBDIR and FFMDIR in Makefile - thanks to guys from www.vdr-wiki.de \ No newline at end of file +- fixed DVBDIR and FFMDIR in Makefile - thanks to guys from www.vdr-wiki.de +- you can set now logpath in makefile - thanks to Dr. Seltsam from www.vdr-portal.de + You should also run a linke like + # find / -name "dxr3plugin.log" | xargs rm + because the pre2 seems to put this dxr3plugin.log random in some folders. \ No newline at end of file diff --git a/INSTALL b/INSTALL index c7098c3..50a1c4f 100644 --- a/INSTALL +++ b/INSTALL @@ -11,9 +11,12 @@ Installation: - Unpack the package into "PLUGINS/SRC" directory - Make a symbolic link to this dxr3-plugin (ln -s vdr_dxr3_x.x.x dxr3) - Check FFMDIR and EM8300 in Makefile -- Check path to microcode for dxr3 in Makefile: +- Check extra settings in Makefile: # where is the microcode for the dxr3 located? DEFINES += -DMICROCODE=\"/usr/share/misc/em8300.uc\" + + # where should we write our log? + DEFINES += -DLOGPATH=\"/video/\" # note: path must end with / - Call "make plugins" in the VDR root directory - Make sure your DXR3 driver modules are loaded and ready to run - Start VDR with "vdr -Pdxr3" diff --git a/Makefile b/Makefile index c5241a6..aca1041 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # # Makefile for a Video Disk Recorder plugin # -# $Id: Makefile,v 1.4 2004/09/18 01:36:02 austriancoder Exp $ +# $Id: Makefile,v 1.5 2004/09/18 12:49:02 austriancoder Exp $ # The official name of this plugin. # This name will be used in the '-P...' option of VDR to load the plugin. @@ -51,6 +51,9 @@ DEFINES += -D_GNU_SOURCE # where is the microcode for the dxr3 located? DEFINES += -DMICROCODE=\"/usr/share/misc/em8300.uc\" +# where should we write our log? +DEFINES += -DLOGPATH=\"/video/\" # note: path must end with / + ### The object files (add further files here): OBJS = $(PLUGIN).o dxr3multichannelaudio.o dxr3sysclock.o dxr3colormanager.o dxr3syncbuffer.o dxr3audiodecoder.o \ diff --git a/dxr3log.c b/dxr3log.c index c795a05..bde2434 100644 --- a/dxr3log.c +++ b/dxr3log.c @@ -28,7 +28,11 @@ cLog::cLog() m_LogOpen = false; m_ForeFlush = true; - Open("dxr3plugin.log"); + std::string Filename; + Filename += LOGPATH; + Filename += "dxr3plugin.log"; + + Open(Filename); } // ================================== -- cgit v1.2.3