From f4a7caa418d3a283392b1142fe9863ae870ce3b8 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 29 Jun 2003 19:46:13 +0000 Subject: compatibility fix for new GST_DEBUG stuff. Original commit message from CVS: compatibility fix for new GST_DEBUG stuff. Includes fixes for missing includes for config.h and unistd.h I only ensured for plugins I can build that they work, so if some of them are still broken, you gotta fix them yourselves unfortunately. --- ext/artsd/gstartsdsink.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'ext/artsd') diff --git a/ext/artsd/gstartsdsink.c b/ext/artsd/gstartsdsink.c index a7d1f7f3..2847d8af 100644 --- a/ext/artsd/gstartsdsink.c +++ b/ext/artsd/gstartsdsink.c @@ -20,6 +20,9 @@ * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "gstartsdsink.h" /* elementfactory information */ @@ -233,7 +236,7 @@ gst_artsdsink_chain (GstPad *pad, GstBuffer *buf) int bytes; void * bufptr = GST_BUFFER_DATA (buf); int bufsize = GST_BUFFER_SIZE (buf); - GST_DEBUG (0, "artsdsink: stream=%p data=%p size=%d", + GST_DEBUG ("artsdsink: stream=%p data=%p size=%d", artsdsink->stream, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf)); do { @@ -360,11 +363,11 @@ gst_artsdsink_open_audio (GstArtsdsink *sink) return FALSE; } - GST_DEBUG (0, "artsdsink: attempting to open connection to aRtsd server"); + GST_DEBUG ("artsdsink: attempting to open connection to aRtsd server"); sink->stream = arts_play_stream(sink->frequency, sink->depth, sink->channels, connname); /* FIXME: check connection */ - /* GST_DEBUG (0, "artsdsink: can't open connection to aRtsd server"); */ + /* GST_DEBUG ("artsdsink: can't open connection to aRtsd server"); */ GST_FLAG_SET (sink, GST_ARTSDSINK_OPEN); sink->connected = TRUE; -- cgit v1.2.1