From 68b8831fd6d994683082349816755459d75af918 Mon Sep 17 00:00:00 2001 From: Tofu Linden Date: Fri, 18 Dec 2009 13:47:57 -0800 Subject: add PID to gstreamer plugin logging. --- .../media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/media_plugins') diff --git a/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h b/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h index 2244ccc146..799808aa8b 100644 --- a/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h +++ b/indra/media_plugins/gstreamer010/llmediaimplgstreamertriviallogging.h @@ -37,10 +37,16 @@ #include +extern "C" { +#include +#include +} + ///////////////////////////////////////////////////////////////////////// // Debug/Info/Warning macros. #define MSGMODULEFOO "(media plugin)" #define STDERRMSG(...) do{\ + fprintf(stderr, " pid:%d: ", (int)getpid());\ fprintf(stderr, MSGMODULEFOO " %s:%d: ", __FUNCTION__, __LINE__);\ fprintf(stderr, __VA_ARGS__);\ fputc('\n',stderr);\ -- cgit v1.2.3