diff options
author | phintuka <phintuka> | 2006-08-16 22:36:30 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-08-16 22:36:30 +0000 |
commit | 80d5d1fab6dcf7cad089aaa27840e07782b79b07 (patch) | |
tree | e9dd9b2acf5d78fa87f06bed17bc4b8c60d343e8 | |
parent | 72f80603eee912111df8680a0f5e53384a30bb04 (diff) | |
download | xineliboutput-80d5d1fab6dcf7cad089aaa27840e07782b79b07.tar.gz xineliboutput-80d5d1fab6dcf7cad089aaa27840e07782b79b07.tar.bz2 |
Allow logging to stdout
-rw-r--r-- | xine_frontend.c | 7 | ||||
-rw-r--r-- | xine_input_vdr.c | 9 |
2 files changed, 12 insertions, 4 deletions
diff --git a/xine_frontend.c b/xine_frontend.c index 8d4d40b3..a2a1c879 100644 --- a/xine_frontend.c +++ b/xine_frontend.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_frontend.c,v 1.8 2006-08-16 21:46:34 phintuka Exp $ + * $Id: xine_frontend.c,v 1.9 2006-08-16 22:36:30 phintuka Exp $ * */ @@ -42,6 +42,9 @@ typedef struct { * logging */ +#if !defined(XINELIBOUTPUT_DEBUG_STDOUT) && \ + !defined(XINELIBOUTPUT_DEBUG_STDERR) + #undef x_syslog _syscall0(pid_t, gettid) @@ -60,6 +63,8 @@ static void x_syslog(int level, const char *fmt, ...) va_end(argp); } +#endif + /* * detect input plugin */ diff --git a/xine_input_vdr.c b/xine_input_vdr.c index 824a701f..490591eb 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.25 2006-08-16 21:46:34 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.26 2006-08-16 22:36:30 phintuka Exp $ * */ @@ -69,8 +69,11 @@ #include "logdefs.h" -#undef x_syslog -#define x_syslog syslog_with_tid +#if !defined(XINELIBOUTPUT_DEBUG_STDOUT) && \ + !defined(XINELIBOUTPUT_DEBUG_STDERR) +# undef x_syslog +# define x_syslog syslog_with_tid +#endif int iSysLogLevel = 1; int bLogToSysLog = 0; |