use the right port 6419, up from vdr-1.7.15 Signed-of-by: Joerg Bornkessl (04 Feb 2011) diff -Naur markad-0.0.8.orig/command/markad-standalone.cpp markad-0.0.8/command/markad-standalone.cpp --- markad-0.0.8.orig/command/markad-standalone.cpp 2011-02-04 15:26:58.000000000 +0100 +++ markad-0.0.8/command/markad-standalone.cpp 2011-02-04 15:33:17.000000000 +0100 @@ -31,6 +31,12 @@ #include "markad-standalone.h" #include "version.h" +#if VDRVERSNUM < 10715 +#define SVDRPPORT 2001 +#else +#define SVDRPPORT 6419 +#endif + extern int sys_ioprio_set(int which, int who, int ioprio); bool SYSLOG=false; bool LOG2REC=false; @@ -2805,7 +2814,7 @@ } else { - config.svdrpport=2001; + config.svdrpport=SVDRPPORT; } atexit(freedir); diff -Naur markad-0.0.8.orig/command/Makefile markad-0.0.8/command/Makefile --- markad-0.0.8.orig/command/Makefile 2011-02-04 17:59:18.000000000 +0100 +++ markad-0.0.8/command/Makefile 2011-02-04 18:01:08.000000000 +0100 @@ -16,6 +16,11 @@ PKG-CONFIG ?= pkg-config STRIP ?= strip +### Get VDR Versions Number + +VDRDIR = $(shell grep ^VDRDIR ../plugin/Makefile | awk '{print $$3}' ) +VDRVERSNUM = $(shell sed -ne '/define VDRVERSNUM/ s/^.[a-zA-Z ]*\([0-9]*\) .*$$/\1/p' $(VDRDIR)/config.h) + ### Includes and Defines (add further entries here): PKG-LIBS += libavcodec libavutil @@ -24,6 +29,7 @@ DEFINES += -D_GNU_SOURCE DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE DEFINES += -D__STDC_CONSTANT_MACROS -D__USE_XOPEN_EXTENDED +DEFINES += -DVDRVERSNUM=$(VDRVERSNUM) ifdef WITH_OLD_FFMPEG_HEADERS DEFINES += -DUSE_OLD_FFMPEG_HEADERS