From 0672ba75337d8cf54848f45e719af16a01dff98f Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Wed, 31 Mar 2010 02:51:19 +0200 Subject: Added OSD message output --- command/markad-standalone.h | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'command/markad-standalone.h') diff --git a/command/markad-standalone.h b/command/markad-standalone.h index 01f381a..1e4c821 100644 --- a/command/markad-standalone.h +++ b/command/markad-standalone.h @@ -16,8 +16,11 @@ #include #include #include +#include #include #include +#include +#include #include "demux.h" #include "global.h" @@ -28,6 +31,23 @@ #include "version.h" #include "marks.h" +#define trNOOP(s) (s) + +class cOSDMessage +{ +private: + const char *host; + int port; + char *msg; + pthread_t tid; + static void *send(void *osd); + bool readreply(int fd); +public: + int Send(const char *format, ...); + cOSDMessage(const char *Host, int Port); + ~cOSDMessage(); +}; + class cMarkAdStandalone { private: @@ -152,9 +172,12 @@ unsigned Descriptor_Length: cMarkAdVideo *video; cMarkAdAudio *audio; cMarkAdStreamInfo *streaminfo; + cOSDMessage *osd; MarkAdContext macontext; + char title[80],*ptitle; + bool CreatePidfile(const char *Directory); void RemovePidfile(const char *Directory); bool duplicate; // are we a dup? @@ -195,7 +218,6 @@ unsigned Descriptor_Length: bool CheckTS(const char *Directory); bool LoadInfo(const char *Directory); bool ProcessFile(const char *Directory, int Number); - public: void SetAbort() { @@ -206,7 +228,7 @@ public: int LogoWidth, int LogoHeight, bool DecodeVideo, bool DecodeAudio, bool IgnoreVideoInfo, bool IgnoreAudioInfo, const char *LogoDir, const char *MarkFileName, bool ASD, - bool noPid); + bool noPid, bool OSD, const char *SVDRPHost, int SVDRPPort); ~cMarkAdStandalone(); }; -- cgit v1.2.3