filter newlines out of GST_DEBUG statements to reflect new core behavior fixes to...
authorAndy Wingo <wingo@pobox.com>
Sun, 24 Mar 2002 22:07:03 +0000 (22:07 +0000)
committerAndy Wingo <wingo@pobox.com>
Sun, 24 Mar 2002 22:07:03 +0000 (22:07 +0000)
Original commit message from CVS:
* filter newlines out of GST_DEBUG statements to reflect new core behavior
* fixes to adder's caps, again

24 files changed:
ext/aalib/gstaasink.c
ext/esd/esdmon.c
ext/esd/esdsink.c
ext/flac/gstflacenc.c
ext/jpeg/gstjpegdec.c
ext/jpeg/gstjpegenc.c
ext/ladspa/gstladspa.c
ext/mikmod/gstmikmod.c
gst/auparse/gstauparse.c
gst/avi/audiocodecs.c
gst/avi/gstaviaudiodecoder.c
gst/avi/gstavidecoder.c
gst/avi/gstavidemux.c
gst/avi/gstavimux.c
gst/avi/gstcdxaparse.c
gst/flx/gstflxdec.c
gst/goom/gstgoom.c
gst/median/gstmedian.c
gst/monoscope/gstmonoscope.c
gst/smoothwave/gstsmoothwave.c
gst/wavparse/gstwavparse.c
sys/oss/gstossgst.c
sys/oss/gstosssink.c
sys/oss/gstosssrc.c

index 0aae897..b19623e 100644 (file)
@@ -247,7 +247,7 @@ gst_aasink_sinkconnect (GstPad *pad, GstCaps *caps)
 
   print_format = GULONG_FROM_LE (aasink->format);
 
-  GST_DEBUG (0, "aasink: setting %08lx (%4.4s)\n", aasink->format, (gchar*)&print_format);
+  GST_DEBUG (0, "aasink: setting %08lx (%4.4s)", aasink->format, (gchar*)&print_format);
   
   g_signal_emit( G_OBJECT (aasink), gst_aasink_signals[SIGNAL_HAVE_SIZE], 0,
                 aasink->width, aasink->height);
@@ -347,7 +347,7 @@ gst_aasink_chain (GstPad *pad, GstBuffer *buf)
                    aa_imgwidth (aasink->context),      /* dw */
                    aa_imgheight (aasink->context));    /* dh */
 
-  GST_DEBUG (0,"videosink: clock wait: %llu\n", GST_BUFFER_TIMESTAMP(buf));
+  GST_DEBUG (0,"videosink: clock wait: %llu", GST_BUFFER_TIMESTAMP(buf));
 
   if (aasink->clock) {
     gst_element_clock_wait (GST_ELEMENT (aasink), aasink->clock, GST_BUFFER_TIMESTAMP(buf));
index 0ead7f7..618b94f 100644 (file)
@@ -277,7 +277,7 @@ gst_esdmon_get (GstPad *pad)
   g_return_val_if_fail (pad != NULL, NULL);
   esdmon = GST_ESDMON(gst_pad_get_parent (pad));
 
-  GST_DEBUG (GST_CAT_PLUGIN_INFO, "attempting to read something from esdmon\n");
+  GST_DEBUG (GST_CAT_PLUGIN_INFO, "attempting to read something from esdmon");
 
   buf = gst_buffer_new ();
   g_return_val_if_fail (buf, NULL);
@@ -323,7 +323,7 @@ gst_esdmon_get (GstPad *pad)
   if (esdmon->depth == 16) readsamples /= 2;
   esdmon->samples_since_basetime += readsamples;
 
-  GST_DEBUG (GST_CAT_PLUGIN_INFO, "pushed buffer from esdmon of %ld bytes, timestamp %lld\n", readbytes, GST_BUFFER_TIMESTAMP (buf));
+  GST_DEBUG (GST_CAT_PLUGIN_INFO, "pushed buffer from esdmon of %ld bytes, timestamp %lld", readbytes, GST_BUFFER_TIMESTAMP (buf));
   return buf;
 }
 
@@ -441,21 +441,21 @@ gst_esdmon_open_audio (GstEsdmon *src)
   if (src->depth == 16) esdformat |= ESD_BITS16;
   else if (src->depth == 8) esdformat |= ESD_BITS8;
   else {
-    GST_DEBUG (0, "esdmon: invalid bit depth (%d)\n", src->depth);
+    GST_DEBUG (0, "esdmon: invalid bit depth (%d)", src->depth);
     return FALSE;
   }
 
   if (src->channels == 2) esdformat |= ESD_STEREO;
   else if (src->channels == 1) esdformat |= ESD_MONO;
   else {
-    GST_DEBUG (0, "esdmon: invalid number of channels (%d)\n", src->channels);
+    GST_DEBUG (0, "esdmon: invalid number of channels (%d)", src->channels);
     return FALSE;
   }
 
-  GST_DEBUG (0, "esdmon: attempting to open connection to esound server\n");
+  GST_DEBUG (0, "esdmon: attempting to open connection to esound server");
   src->fd = esd_monitor_stream(esdformat, src->frequency, src->host, connname);
   if ( src->fd < 0 ) {
-    GST_DEBUG (0, "esdmon: can't open connection to esound server\n");
+    GST_DEBUG (0, "esdmon: can't open connection to esound server");
     return FALSE;
   }
 
@@ -474,7 +474,7 @@ gst_esdmon_close_audio (GstEsdmon *src)
 
   GST_FLAG_UNSET (src, GST_ESDMON_OPEN);
 
-  GST_DEBUG (0, "esdmon: closed sound device\n");
+  GST_DEBUG (0, "esdmon: closed sound device");
 }
 
 static GstElementStateReturn
index 99dfff1..b22e69d 100644 (file)
@@ -250,7 +250,7 @@ gst_esdsink_chain (GstPad *pad, GstBuffer *buf)
 
   if (GST_BUFFER_DATA (buf) != NULL) {
     if (!esdsink->mute && esdsink->fd >= 0) {
-      GST_DEBUG (0, "esdsink: fd=%d data=%p size=%d\n",
+      GST_DEBUG (0, "esdsink: fd=%d data=%p size=%d",
                 esdsink->fd, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
       write (esdsink->fd, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
     }
@@ -363,21 +363,21 @@ gst_esdsink_open_audio (GstEsdsink *sink)
   if (sink->depth == 16) esdformat |= ESD_BITS16;
   else if (sink->depth == 8) esdformat |= ESD_BITS8;
   else {
-    GST_DEBUG (0, "esdsink: invalid bit depth (%d)\n", sink->depth);
+    GST_DEBUG (0, "esdsink: invalid bit depth (%d)", sink->depth);
     return FALSE;
   }
 
   if (sink->channels == 2) esdformat |= ESD_STEREO;
   else if (sink->channels == 1) esdformat |= ESD_MONO;
   else {
-    GST_DEBUG (0, "esdsink: invalid number of channels (%d)\n", sink->channels);
+    GST_DEBUG (0, "esdsink: invalid number of channels (%d)", sink->channels);
     return FALSE;
   }
 
-  GST_DEBUG (0, "esdsink: attempting to open connection to esound server\n");
+  GST_DEBUG (0, "esdsink: attempting to open connection to esound server");
   sink->fd = esd_play_stream_fallback(esdformat, sink->frequency, sink->host, connname);
   if ( sink->fd < 0 ) {
-    GST_DEBUG (0, "esdsink: can't open connection to esound server\n");
+    GST_DEBUG (0, "esdsink: can't open connection to esound server");
     return FALSE;
   }
 
@@ -396,7 +396,7 @@ gst_esdsink_close_audio (GstEsdsink *sink)
 
   GST_FLAG_UNSET (sink, GST_ESDSINK_OPEN);
 
-  GST_DEBUG (0, "esdsink: closed sound device\n");
+  GST_DEBUG (0, "esdsink: closed sound device");
 }
 
 static GstElementStateReturn
index 60390e1..a1f06b2 100644 (file)
@@ -231,7 +231,7 @@ gst_flacenc_set_property(GObject *object, guint prop_id, const GValue *value, GP
   this = (FlacEnc *)object;
   switch (prop_id) {
   default:
-    GST_DEBUG(0, "Unknown arg %d\n", prop_id);
+    GST_DEBUG(0, "Unknown arg %d", prop_id);
     return;
   }
 }
@@ -245,7 +245,7 @@ gst_flacenc_get_property(GObject *object, guint prop_id, GValue *value, GParamSp
   
   switch (prop_id) {
   default:
-    GST_DEBUG(0, "Unknown arg %d\n", prop_id);
+    GST_DEBUG(0, "Unknown arg %d", prop_id);
     break;
   }
 }
index 9dfab51..93c1cd3 100644 (file)
@@ -87,38 +87,38 @@ gst_jpegdec_class_init (GstJpegDec *klass)
 static void
 gst_jpegdec_init_source (j_decompress_ptr cinfo)
 {
-  GST_DEBUG (0,"gst_jpegdec_chain: init_source\n");
+  GST_DEBUG (0,"gst_jpegdec_chain: init_source");
 }
 static gboolean
 gst_jpegdec_fill_input_buffer (j_decompress_ptr cinfo)
 {
-  GST_DEBUG (0,"gst_jpegdec_chain: fill_input_buffer\n");
+  GST_DEBUG (0,"gst_jpegdec_chain: fill_input_buffer");
   return TRUE;
 }
 
 static void
 gst_jpegdec_skip_input_data (j_decompress_ptr cinfo, glong num_bytes)
 {
-  GST_DEBUG (0,"gst_jpegdec_chain: skip_input_data\n");
+  GST_DEBUG (0,"gst_jpegdec_chain: skip_input_data");
 }
 
 static gboolean
 gst_jpegdec_resync_to_restart (j_decompress_ptr cinfo, gint desired)
 {
-  GST_DEBUG (0,"gst_jpegdec_chain: resync_to_start\n");
+  GST_DEBUG (0,"gst_jpegdec_chain: resync_to_start");
   return TRUE;
 }
 
 static void
 gst_jpegdec_term_source (j_decompress_ptr cinfo)
 {
-  GST_DEBUG (0,"gst_jpegdec_chain: term_source\n");
+  GST_DEBUG (0,"gst_jpegdec_chain: term_source");
 }
 
 static void
 gst_jpegdec_init (GstJpegDec *jpegdec)
 {
-  GST_DEBUG (0,"gst_jpegdec_init: initializing\n");
+  GST_DEBUG (0,"gst_jpegdec_init: initializing");
   /* create the sink and src pads */
   jpegdec->sinkpad = gst_pad_new_from_template (jpegdec_sink_template, "sink");
   gst_element_add_pad(GST_ELEMENT(jpegdec),jpegdec->sinkpad);
@@ -180,14 +180,14 @@ gst_jpegdec_chain (GstPad *pad, GstBuffer *buf)
 
   data = (guchar *)GST_BUFFER_DATA(buf);
   size = GST_BUFFER_SIZE(buf);
-  GST_DEBUG (0,"gst_jpegdec_chain: got buffer of %ld bytes in '%s'\n",size,
+  GST_DEBUG (0,"gst_jpegdec_chain: got buffer of %ld bytes in '%s'",size,
           GST_OBJECT_NAME (jpegdec));
 
   jpegdec->jsrc.next_input_byte = data;
   jpegdec->jsrc.bytes_in_buffer = size;
                                  
 
-  GST_DEBUG (0,"gst_jpegdec_chain: reading header %08lx\n", *(gulong *)data);
+  GST_DEBUG (0,"gst_jpegdec_chain: reading header %08lx", *(gulong *)data);
   jpeg_read_header(&jpegdec->cinfo, TRUE);
 
   r_h = jpegdec->cinfo.cur_comp_info[0]->h_samp_factor;
@@ -202,11 +202,11 @@ gst_jpegdec_chain (GstPad *pad, GstBuffer *buf)
   jpegdec->cinfo.out_color_space = JCS_YCbCr;
   jpegdec->cinfo.dct_method = JDCT_IFAST;
   jpegdec->cinfo.raw_data_out = TRUE;
-  GST_DEBUG (0,"gst_jpegdec_chain: starting decompress\n");
+  GST_DEBUG (0,"gst_jpegdec_chain: starting decompress");
   jpeg_start_decompress(&jpegdec->cinfo);
   width = jpegdec->cinfo.output_width;
   height = jpegdec->cinfo.output_height;
-  GST_DEBUG (0,"gst_jpegdec_chain: width %d, height %d\n", width, height);
+  GST_DEBUG (0,"gst_jpegdec_chain: width %d, height %d", width, height);
 
   outbuf = gst_buffer_new();
   outsize = GST_BUFFER_SIZE(outbuf) = width*height +
@@ -237,7 +237,7 @@ gst_jpegdec_chain (GstPad *pad, GstBuffer *buf)
 
   width2 = width >> 1;
 
-  GST_DEBUG (0,"gst_jpegdec_chain: decompressing %u\n", jpegdec->cinfo.rec_outbuf_height);
+  GST_DEBUG (0,"gst_jpegdec_chain: decompressing %u", jpegdec->cinfo.rec_outbuf_height);
   for (i = 0; i < height; i += r_v*DCTSIZE) {
     for (j=0, k=0; j< (r_v*DCTSIZE); j += r_v, k++) {
       jpegdec->line[0][j]   = base[0]; base[0] += width;
@@ -254,10 +254,10 @@ gst_jpegdec_chain (GstPad *pad, GstBuffer *buf)
     jpeg_read_raw_data(&jpegdec->cinfo, jpegdec->line, r_v*DCTSIZE);
   }
 
-  GST_DEBUG (0,"gst_jpegdec_chain: decompressing finished\n");
+  GST_DEBUG (0,"gst_jpegdec_chain: decompressing finished");
   jpeg_finish_decompress(&jpegdec->cinfo);
 
-  GST_DEBUG (0,"gst_jpegdec_chain: sending buffer\n");
+  GST_DEBUG (0,"gst_jpegdec_chain: sending buffer");
   gst_pad_push(jpegdec->srcpad, outbuf);
 
   gst_buffer_unref(buf);
index b8a660f..135ac45 100644 (file)
@@ -97,19 +97,19 @@ gst_jpegenc_class_init (GstJpegEnc *klass)
 static void
 gst_jpegenc_init_destination (j_compress_ptr cinfo)
 {
-  GST_DEBUG (0,"gst_jpegenc_chain: init_destination\n");
+  GST_DEBUG (0,"gst_jpegenc_chain: init_destination");
 }
 
 static gboolean
 gst_jpegenc_flush_destination (j_compress_ptr cinfo)
 {
-  GST_DEBUG (0,"gst_jpegenc_chain: flush_destination: buffer too small !!!\n");
+  GST_DEBUG (0,"gst_jpegenc_chain: flush_destination: buffer too small !!!");
   return TRUE;
 }
 
 static void gst_jpegenc_term_destination (j_compress_ptr cinfo)
 {
-  GST_DEBUG (0,"gst_jpegenc_chain: term_source\n");
+  GST_DEBUG (0,"gst_jpegenc_chain: term_source");
 }
 
 static void
@@ -133,7 +133,7 @@ gst_jpegenc_init (GstJpegEnc *jpegenc)
   jpegenc->cinfo.err = jpeg_std_error(&jpegenc->jerr);
   jpeg_create_compress(&jpegenc->cinfo);
 
-  GST_DEBUG (0,"gst_jpegenc_init: setting line buffers\n");
+  GST_DEBUG (0,"gst_jpegenc_init: setting line buffers");
   jpegenc->line[0] = NULL;
   jpegenc->line[1] = NULL;
   jpegenc->line[2] = NULL;
@@ -153,13 +153,13 @@ gst_jpegenc_resync (GstJpegEnc *jpegenc)
   guint size = 0;
   gint width, height;
 
-  GST_DEBUG (0,"gst_jpegenc_resync: resync\n");
+  GST_DEBUG (0,"gst_jpegenc_resync: resync");
 
   jpegenc->cinfo.image_width = width = jpegenc->width;
   jpegenc->cinfo.image_height = height = jpegenc->height;
   jpegenc->cinfo.input_components = 3;
 
-  GST_DEBUG (0,"gst_jpegenc_resync: wdith %d, height %d\n", width, height);
+  GST_DEBUG (0,"gst_jpegenc_resync: wdith %d, height %d", width, height);
 
   jpeg_set_defaults(&jpegenc->cinfo);
   jpegenc->cinfo.dct_method = JDCT_FASTEST;
@@ -171,7 +171,7 @@ gst_jpegenc_resync (GstJpegEnc *jpegenc)
   switch (jpegenc->format) {
     case GST_COLORSPACE_RGB24:
       size = 3;
-      GST_DEBUG (0,"gst_jpegenc_resync: setting format to RGB24\n");
+      GST_DEBUG (0,"gst_jpegenc_resync: setting format to RGB24");
       jpegenc->cinfo.in_color_space = JCS_RGB;
       jpegenc->cinfo.raw_data_in = FALSE;
       break;
@@ -179,7 +179,7 @@ gst_jpegenc_resync (GstJpegEnc *jpegenc)
       size = 2;
       jpegenc->cinfo.raw_data_in = TRUE;
       jpegenc->cinfo.in_color_space = JCS_YCbCr;
-      GST_DEBUG (0,"gst_jpegenc_resync: setting format to YUV420P\n");
+      GST_DEBUG (0,"gst_jpegenc_resync: setting format to YUV420P");
       jpegenc->cinfo.comp_info[0].h_samp_factor = 2;
       jpegenc->cinfo.comp_info[0].v_samp_factor = 2;
       jpegenc->cinfo.comp_info[1].h_samp_factor = 1;
@@ -193,7 +193,7 @@ gst_jpegenc_resync (GstJpegEnc *jpegenc)
         jpegenc->line[2] = g_realloc(jpegenc->line[2], height*sizeof(char*)/2);
       }
 
-      GST_DEBUG (0,"gst_jpegenc_resync: setting format done\n");
+      GST_DEBUG (0,"gst_jpegenc_resync: setting format done");
       break;
     default:
       printf("gst_jpegenc_resync: unsupported colorspace, using RGB\n");
@@ -208,7 +208,7 @@ gst_jpegenc_resync (GstJpegEnc *jpegenc)
   jpeg_suppress_tables(&jpegenc->cinfo, TRUE);
 
   jpegenc->buffer = NULL;
-  GST_DEBUG (0,"gst_jpegenc_resync: resync done\n");
+  GST_DEBUG (0,"gst_jpegenc_resync: resync done");
 }
 
 static GstBuffer*
@@ -217,7 +217,7 @@ gst_jpegenc_get (GstPad *pad)
   GstJpegEnc *jpegenc;
   GstBuffer *newbuf;
 
-  GST_DEBUG (0,"gst_jpegenc_chain: pull buffer\n");
+  GST_DEBUG (0,"gst_jpegenc_chain: pull buffer");
 
   g_return_val_if_fail (pad != NULL, NULL);
   g_return_val_if_fail (GST_IS_PAD (pad), NULL);
@@ -226,7 +226,7 @@ gst_jpegenc_get (GstPad *pad)
 
   if (jpegenc->buffer == NULL || GST_BUFFER_REFCOUNT(jpegenc->buffer) != 1) {
     if (jpegenc->buffer) gst_buffer_unref(jpegenc->buffer);
-    GST_DEBUG (0,"gst_jpegenc_chain: new buffer\n");
+    GST_DEBUG (0,"gst_jpegenc_chain: new buffer");
     newbuf = jpegenc->buffer = gst_buffer_new();
     GST_BUFFER_DATA(newbuf) = g_malloc(jpegenc->bufsize);
     GST_BUFFER_SIZE(newbuf) = jpegenc->bufsize;
@@ -259,7 +259,7 @@ gst_jpegenc_chain (GstPad *pad, GstBuffer *buf)
   data = GST_BUFFER_DATA(buf);
   size = GST_BUFFER_SIZE(buf);
 
-  GST_DEBUG (0,"gst_jpegenc_chain: got buffer of %ld bytes in '%s'\n",size,
+  GST_DEBUG (0,"gst_jpegenc_chain: got buffer of %ld bytes in '%s'",size,
           GST_OBJECT_NAME (jpegenc));
 
   outbuf = gst_buffer_new();
@@ -280,7 +280,7 @@ gst_jpegenc_chain (GstPad *pad, GstBuffer *buf)
   jpeg_start_compress(&jpegenc->cinfo, TRUE);
 
   width2 = width>>1;
-  GST_DEBUG (0,"gst_jpegdec_chain: compressing\n");
+  GST_DEBUG (0,"gst_jpegdec_chain: compressing");
 
   for (i = 0; i < height; i += 2*DCTSIZE) {
     for (j=0, k=0; j<2*DCTSIZE;j+=2, k++) {
@@ -292,7 +292,7 @@ gst_jpegenc_chain (GstPad *pad, GstBuffer *buf)
     jpeg_write_raw_data(&jpegenc->cinfo, jpegenc->line, 2*DCTSIZE);
   }
   jpeg_finish_compress(&jpegenc->cinfo);
-  GST_DEBUG (0,"gst_jpegdec_chain: compressing done\n");
+  GST_DEBUG (0,"gst_jpegdec_chain: compressing done");
 
   GST_BUFFER_SIZE(outbuf) = (((outsize - jpegenc->jdest.free_in_buffer)+3)&~3);
 
index 0eab11c..69eeed5 100644 (file)
@@ -184,19 +184,19 @@ gst_ladspa_class_init (GstLADSPAClass *klass)
   for (i=0;i<desc->PortCount;i++) {
     if (LADSPA_IS_PORT_AUDIO(desc->PortDescriptors[i]) && 
         LADSPA_IS_PORT_INPUT(desc->PortDescriptors[i])){
-      GST_DEBUG (0, "input port %d\n", i);
+      GST_DEBUG (0, "input port %d", i);
       klass->sinkpad_portnums[sinkcount++] = i;
     }
       
     if (LADSPA_IS_PORT_AUDIO(desc->PortDescriptors[i]) && 
         LADSPA_IS_PORT_OUTPUT(desc->PortDescriptors[i])){
-      GST_DEBUG (0, "output port %d\n", i);
+      GST_DEBUG (0, "output port %d", i);
       klass->srcpad_portnums[srccount++] = i;
     }
       
     if (LADSPA_IS_PORT_CONTROL(desc->PortDescriptors[i]) && 
         LADSPA_IS_PORT_INPUT(desc->PortDescriptors[i])){
-      GST_DEBUG (0, "control port %d\n", i);
+      GST_DEBUG (0, "control port %d", i);
       klass->control_portnums[controlcount++] = i;
     }
   }
@@ -450,7 +450,7 @@ gst_ladspa_connect_get (GstPad *pad, GstCaps *caps)
 static void
 gst_ladspa_force_src_caps(GstLADSPA *ladspa, GstPad *pad)
 {
-  GST_DEBUG (0, "forcing caps\n");
+  GST_DEBUG (0, "forcing caps");
   gst_pad_try_set_caps (pad, gst_caps_new (
     "ladspa_src_caps",
     "audio/raw",
@@ -528,7 +528,7 @@ gst_ladspa_set_property (GObject *object, guint prop_id, const GValue *value, GP
     ladspa->controls[cid] = val;
   }    
 
-  GST_DEBUG (0, "set arg %s to %f\n", control_info->name, ladspa->controls[cid]);
+  GST_DEBUG (0, "set arg %s to %f", control_info->name, ladspa->controls[cid]);
 }
 
 static void
@@ -556,7 +556,7 @@ gst_ladspa_get_property (GObject *object, guint prop_id, GValue *value, GParamSp
   control_info = &(oclass->control_info[cid]);
   if (control_info->name == NULL) return;
 
-  GST_DEBUG (0, "got arg %s as %f\n", control_info->name, ladspa->controls[cid]);
+  GST_DEBUG (0, "got arg %s as %f", control_info->name, ladspa->controls[cid]);
 
   /* now see what type it is */
   if (control_info->toggled) {
@@ -589,7 +589,7 @@ gst_ladspa_instantiate (GstLADSPA *ladspa)
   }
         
   /* instantiate the plugin */ 
-  GST_DEBUG (0, "instantiating the plugin\n");
+  GST_DEBUG (0, "instantiating the plugin");
   
   ladspa->handle = desc->instantiate(desc,ladspa->samplerate);
   g_return_val_if_fail (ladspa->handle != NULL, FALSE);
@@ -597,7 +597,7 @@ gst_ladspa_instantiate (GstLADSPA *ladspa)
   /* walk through the ports and add all the arguments */
   for (i=0;i<oclass->numcontrols;i++) {
     /* connect the argument to the plugin */
-    GST_DEBUG (0, "added control port %d\n", oclass->control_portnums[i]);
+    GST_DEBUG (0, "added control port %d", oclass->control_portnums[i]);
     desc->connect_port(ladspa->handle,
                        oclass->control_portnums[i],
                        &(ladspa->controls[i]));
@@ -617,7 +617,7 @@ gst_ladspa_change_state (GstElement *element)
   GstLADSPA *ladspa = (GstLADSPA*)element;
   desc = ladspa->descriptor;
 
-  GST_DEBUG (0, "changing state\n");
+  GST_DEBUG (0, "changing state");
   switch (GST_STATE_TRANSITION (element)) {
     case GST_STATE_NULL_TO_READY:
       gst_ladspa_activate(ladspa);
@@ -645,7 +645,7 @@ gst_ladspa_activate(GstLADSPA *ladspa)
     gst_ladspa_deactivate(ladspa);
   }
   
-  GST_DEBUG (0, "activating\n");
+  GST_DEBUG (0, "activating");
 
   /* activate the plugin (function might be null) */
   if (desc->activate != NULL) {
@@ -661,7 +661,7 @@ gst_ladspa_deactivate(GstLADSPA *ladspa)
   LADSPA_Descriptor *desc;
   desc = ladspa->descriptor;
 
-  GST_DEBUG (0, "deactivating\n");
+  GST_DEBUG (0, "deactivating");
 
   /* deactivate the plugin (function might be null) */
   if (ladspa->activated && (desc->deactivate != NULL)) {
@@ -703,7 +703,7 @@ gst_ladspa_loop (GstElement *element)
 
     /* first get all the necessary data from the input ports */
     for (i=0;i<oclass->numsinkpads;i++){  
-      GST_DEBUG (0, "pulling %d bytes through channel %d's bytestream\n", i);
+      GST_DEBUG (0, "pulling %d bytes through channel %d's bytestream", i);
       raw_in = gst_bytestream_peek_bytes (ladspa->bytestreams[i], ladspa->buffersize * sizeof (LADSPA_Data));
 
       if (raw_in == NULL) {
@@ -715,7 +715,7 @@ gst_ladspa_loop (GstElement *element)
             /* if we get an EOS event from one of our sink pads, we assume that
                pad's finished handling data. delete the bytestream, free up the
                pad, and free up the memory associated with the input channel. */
-            GST_DEBUG (0, "got an EOS event on sinkpad %d\n", i);
+            GST_DEBUG (0, "got an EOS event on sinkpad %d", i);
           }
 
           /* we need to create some zeroed out data to feed to this port of the
@@ -761,7 +761,7 @@ gst_ladspa_loop (GstElement *element)
       desc->connect_port (ladspa->handle, oclass->sinkpad_portnums[i], NULL);
     }
     for (i=0;i<oclass->numsrcpads;i++) {
-      GST_DEBUG (0, "pushing buffer (%p) on src pad %d\n", buffers_out[i], i);
+      GST_DEBUG (0, "pushing buffer (%p) on src pad %d", buffers_out[i], i);
       gst_pad_push (ladspa->srcpads[i], buffers_out[i]);
       buffers_out[i] = NULL;
       desc->connect_port (ladspa->handle, oclass->srcpad_portnums[i], NULL);
index ce83bf9..801c816 100644 (file)
@@ -434,7 +434,7 @@ GstMikMod *mikmod;
 
   mikmod = GST_MIKMOD (element);
 
-  GST_DEBUG (0,"state pending %d\n", GST_STATE_PENDING (element));
+  GST_DEBUG (0,"state pending %d", GST_STATE_PENDING (element));
 
   /* if going down into NULL state, close the file if it's open */
   if (GST_STATE_PENDING (element) == GST_STATE_READY) 
index 85b679c..11b049b 100644 (file)
@@ -181,7 +181,7 @@ gst_auparse_chain (GstPad *pad, GstBuffer *buf)
 
   auparse = GST_AUPARSE (gst_pad_get_parent (pad));
   
-  GST_DEBUG (0, "gst_auparse_chain: got buffer in '%s'\n",
+  GST_DEBUG (0, "gst_auparse_chain: got buffer in '%s'",
           gst_element_get_name (GST_ELEMENT (auparse)));
 
   data = GST_BUFFER_DATA (buf);
@@ -219,7 +219,7 @@ gst_auparse_chain (GstPad *pad, GstBuffer *buf)
     g_print ("offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld\n",
              auparse->offset,auparse->size,auparse->encoding,
              auparse->frequency,auparse->channels);
-    GST_DEBUG (0, "offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld\n",
+    GST_DEBUG (0, "offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld",
              auparse->offset,auparse->size,auparse->encoding,
              auparse->frequency,auparse->channels);
     
index 51b0a06..05c8862 100644 (file)
@@ -177,13 +177,13 @@ static GstPad *gst_avi_decoder_get_audio_srcpad_winloader(GstAviDecoder *avi_dec
 
   data->out = sinkpad;
 
-  GST_DEBUG (0,"gst_avi_decoder: pads created\n");
+  GST_DEBUG (0,"gst_avi_decoder: pads created");
   return sinkpad;
 }
 
 static void gst_avi_decoder_winloader_audio_chain(GstPad *pad, GstBuffer *buf) 
 {
 
-  GST_DEBUG (0,"gst_avi_decoder: got buffer %08lx %p\n", *(gulong *)GST_BUFFER_DATA(buf), GST_BUFFER_DATA(buf));
+  GST_DEBUG (0,"gst_avi_decoder: got buffer %08lx %p", *(gulong *)GST_BUFFER_DATA(buf), GST_BUFFER_DATA(buf));
   gst_buffer_unref(buf);  
 }
index 7e9e083..38a6b85 100644 (file)
@@ -143,7 +143,7 @@ gst_avi_audio_decoder_chain (GstPad *pad,
   g_return_if_fail (GST_BUFFER_DATA(buf) != NULL);
 
   avi_audio_decoder = GST_AVI_AUDIO_DECODER (gst_pad_get_parent (pad));
-  GST_DEBUG (0,"gst_avi_audio_decoder_chain: got buffer in %u\n", GST_BUFFER_OFFSET (buf));
+  GST_DEBUG (0,"gst_avi_audio_decoder_chain: got buffer in %u", GST_BUFFER_OFFSET (buf));
   g_print ("gst_avi_audio_decoder_chain: got buffer in %u\n", GST_BUFFER_OFFSET (buf));
   data = (guchar *)GST_BUFFER_DATA (buf);
   size = GST_BUFFER_SIZE (buf);
index d0e33ba..44ccd81 100644 (file)
@@ -186,7 +186,7 @@ gst_avi_decoder_new_pad (GstElement *element, GstPad *pad, GstAviDecoder *avi_de
 #define AVI_TYPE_AUDIO  2
   gint media_type = 0;
   
-  GST_DEBUG (0, "avidecoder: new pad for element \"%s\"\n", gst_element_get_name (element));
+  GST_DEBUG (0, "avidecoder: new pad for element \"%s\"", gst_element_get_name (element));
 
   caps = gst_pad_get_caps (pad);
   format = gst_caps_get_string (caps, "format");
@@ -303,7 +303,7 @@ avi_typefind (GstBuffer *buf,
   gchar *data = GST_BUFFER_DATA (buf);
   GstCaps *new;
 
-  GST_DEBUG (0,"avi_decoder: typefind\n");
+  GST_DEBUG (0,"avi_decoder: typefind");
   if (strncmp (&data[0], "RIFF", 4)) return NULL;
   if (strncmp (&data[8], "AVI ", 4)) return NULL;
 
index 6bddcfe..d659a3f 100644 (file)
@@ -258,7 +258,7 @@ avi_typefind (GstBuffer *buf,
   gchar *data = GST_BUFFER_DATA (buf);
   GstCaps *new;
 
-  GST_DEBUG (0,"avi_demux: typefind\n");
+  GST_DEBUG (0,"avi_demux: typefind");
 
   if (GUINT32_FROM_LE (((guint32 *)data)[0]) != GST_RIFF_TAG_RIFF)
     return NULL;
@@ -769,7 +769,7 @@ gst_avidemux_process_chunk (GstAviDemux *avi_demux, guint64 *filepos,
     case GST_RIFF_00db:
     case GST_RIFF_00__:
     {
-      GST_DEBUG (0,"gst_avi_demux_chain: tag found %08x size %08x\n",
+      GST_DEBUG (0,"gst_avi_demux_chain: tag found %08x size %08x",
                    chunkid, *chunksize);
 
       if (GST_PAD_IS_CONNECTED (avi_demux->video_pad[0])) {
@@ -787,9 +787,9 @@ gst_avidemux_process_chunk (GstAviDemux *avi_demux, guint64 *filepos,
             avi_demux->video_need_flush[0] = FALSE;
           }
 
-          GST_DEBUG (0,"gst_avi_demux_chain: send video buffer %08x\n", *chunksize);
+          GST_DEBUG (0,"gst_avi_demux_chain: send video buffer %08x", *chunksize);
           gst_pad_push(avi_demux->video_pad[0], buf);
-          GST_DEBUG (0,"gst_avi_demux_chain: sent video buffer %08x %p\n",
+          GST_DEBUG (0,"gst_avi_demux_chain: sent video buffer %08x %p",
                      *chunksize, &avi_demux->video_pad[0]);
           avi_demux->current_frame++;
        }
@@ -799,7 +799,7 @@ gst_avidemux_process_chunk (GstAviDemux *avi_demux, guint64 *filepos,
     }
     case GST_RIFF_01wb:
     {
-      GST_DEBUG (0,"gst_avi_demux_chain: tag found %08x size %08x\n",
+      GST_DEBUG (0,"gst_avi_demux_chain: tag found %08x size %08x",
                    chunkid, *chunksize);
 
       if (avi_demux->init_audio) {
@@ -816,21 +816,21 @@ gst_avidemux_process_chunk (GstAviDemux *avi_demux, guint64 *filepos,
           GST_BUFFER_TIMESTAMP (buf) = -1LL;
 
           if (avi_demux->audio_need_flush[0]) {
-           GST_DEBUG (0,"audio flush\n");
+           GST_DEBUG (0,"audio flush");
             avi_demux->audio_need_flush[0] = FALSE;
             /* FIXME, do some flush event here */
           }
 
-          GST_DEBUG (0,"gst_avi_demux_chain: send audio buffer %08x\n", *chunksize);
+          GST_DEBUG (0,"gst_avi_demux_chain: send audio buffer %08x", *chunksize);
           gst_pad_push (avi_demux->audio_pad[0], buf);
-          GST_DEBUG (0,"gst_avi_demux_chain: sent audio buffer %08x\n", *chunksize);
+          GST_DEBUG (0,"gst_avi_demux_chain: sent audio buffer %08x", *chunksize);
        }
       }
       *chunksize = (*chunksize + 1) & ~1;
       break;
     }
     default:
-      GST_DEBUG (0, "  *****  unknown chunkid %08x (%s)\n", chunkid, gst_riff_id_to_fourcc (chunkid));
+      GST_DEBUG (0, "  *****  unknown chunkid %08x (%s)", chunkid, gst_riff_id_to_fourcc (chunkid));
       *chunksize = (*chunksize + 1) & ~1;
       break;
   }
index b48fe85..4273a40 100644 (file)
@@ -284,7 +284,7 @@ gst_avimux_sinkconnect (GstPad *pad, GstCaps *vscaps)
   if (!GST_CAPS_IS_FIXED (vscaps))
     return GST_PAD_CONNECT_DELAYED;
 
-  GST_DEBUG (0, "avimux: sinkconnect triggered on %s\n", gst_pad_get_name (pad));
+  GST_DEBUG (0, "avimux: sinkconnect triggered on %s", gst_pad_get_name (pad));
 
   for (caps = vscaps; caps != NULL; caps = vscaps = vscaps->next)
   {
index 31ce316..bcffdaf 100644 (file)
@@ -164,7 +164,7 @@ cdxa_typefind (GstBuffer *buf,
   gchar *data = GST_BUFFER_DATA (buf);
   GstCaps *new;
 
-  GST_DEBUG (0,"cdxa_parse: typefind\n");
+  GST_DEBUG (0,"cdxa_parse: typefind");
 
   if (GUINT32_FROM_LE (((guint32 *)data)[0]) != GST_RIFF_TAG_RIFF)
     return NULL;
index 98dda1f..eeeb9c5 100644 (file)
@@ -465,7 +465,7 @@ gst_flxdec_loop (GstElement *element)
   g_return_if_fail (element != NULL);
   g_return_if_fail (GST_IS_FLXDEC(element));
 
-  GST_DEBUG (0, "entering loop function\n");
+  GST_DEBUG (0, "entering loop function");
   
   flxdec = GST_FLXDEC(element);
 
index dc59fea..bdbd07f 100644 (file)
@@ -230,11 +230,11 @@ gst_goom_chain (GstPad *pad, GstBuffer *bufin)
 
   goom = GST_GOOM (gst_pad_get_parent (pad));
 
-  GST_DEBUG (0, "GOOM: chainfunc called\n");
+  GST_DEBUG (0, "GOOM: chainfunc called");
 
   samples_in = GST_BUFFER_SIZE (bufin) / sizeof (gint16);
 
-  GST_DEBUG (0, "input buffer has %d samples\n", samples_in);
+  GST_DEBUG (0, "input buffer has %d samples", samples_in);
 
   if (GST_BUFFER_TIMESTAMP (bufin) < goom->next_time || samples_in < 1024) {
     gst_buffer_unref (bufin);
@@ -252,7 +252,7 @@ gst_goom_chain (GstPad *pad, GstBuffer *bufin)
 
     goom_init (goom->width, goom->height);
        
-    GST_DEBUG (0, "making new pad\n");
+    GST_DEBUG (0, "making new pad");
 
     caps = GST_CAPS_NEW (
                     "goomsrc",
@@ -287,7 +287,7 @@ gst_goom_chain (GstPad *pad, GstBuffer *bufin)
 
   gst_buffer_unref (bufin);
 
-  GST_DEBUG (0, "GOOM: exiting chainfunc\n");
+  GST_DEBUG (0, "GOOM: exiting chainfunc");
 
 }
 
index 72a48e6..2c6113d 100644 (file)
@@ -274,7 +274,7 @@ gst_median_chain (GstPad *pad, GstBuffer *buf)
   data = GST_BUFFER_DATA(buf);
   size = GST_BUFFER_SIZE(buf);
 
-  GST_DEBUG (0,"median: have buffer of %d\n", GST_BUFFER_SIZE(buf));
+  GST_DEBUG (0,"median: have buffer of %d", GST_BUFFER_SIZE(buf));
 
   outbuf = gst_buffer_new();
   GST_BUFFER_DATA(outbuf) = g_malloc(GST_BUFFER_SIZE(buf));
index 2b5a33f..61d155e 100644 (file)
@@ -233,15 +233,15 @@ gst_monoscope_chain (GstPad *pad, GstBuffer *bufin)
 
   monoscope = GST_MONOSCOPE (gst_pad_get_parent (pad));
 
-  GST_DEBUG (0, "Monoscope: chainfunc called\n");
+  GST_DEBUG (0, "Monoscope: chainfunc called");
 
   samples_in = GST_BUFFER_SIZE (bufin) / sizeof (gint16);
 
-  GST_DEBUG (0, "input buffer has %d samples\n", samples_in);
+  GST_DEBUG (0, "input buffer has %d samples", samples_in);
 
   /* FIXME: should really select the first 1024 samples after the timestamp. */
   if (GST_BUFFER_TIMESTAMP (bufin) < monoscope->next_time || samples_in < 1024) {
-    GST_DEBUG (0, "timestamp is %llu: want >= %llu\n", GST_BUFFER_TIMESTAMP (bufin), monoscope->next_time);
+    GST_DEBUG (0, "timestamp is %llu: want >= %llu", GST_BUFFER_TIMESTAMP (bufin), monoscope->next_time);
     gst_buffer_unref (bufin);
     return;
   }
@@ -257,7 +257,7 @@ gst_monoscope_chain (GstPad *pad, GstBuffer *bufin)
 
     monoscope->visstate = monoscope_init (monoscope->width, monoscope->height);
     g_assert(monoscope->visstate != 0);
-    GST_DEBUG (0, "making new pad\n");
+    GST_DEBUG (0, "making new pad");
 
     caps = GST_CAPS_NEW (
                     "monoscopesrc",
@@ -292,7 +292,7 @@ gst_monoscope_chain (GstPad *pad, GstBuffer *bufin)
 
   gst_buffer_unref (bufin);
 
-  GST_DEBUG (0, "Monoscope: exiting chainfunc\n");
+  GST_DEBUG (0, "Monoscope: exiting chainfunc");
 
 }
 
index 4fa855a..48d32c4 100644 (file)
@@ -124,12 +124,12 @@ gst_smoothwave_init (GstSmoothWave *smoothwave)
 /*  gtk_widget_set_default_colormap (gdk_rgb_get_cmap()); */
 /*  gtk_widget_set_default_visual (gdk_rgb_get_visual()); */
 
-/*  GST_DEBUG (0,"creating palette\n"); */
+/*  GST_DEBUG (0,"creating palette"); */
   for (i=0;i<256;i++)
     palette[i] = (i << 16) || (i << 8);
-/*  GST_DEBUG (0,"creating cmap\n"); */
+/*  GST_DEBUG (0,"creating cmap"); */
   smoothwave->cmap = gdk_rgb_cmap_new(palette,256);
-/*  GST_DEBUG (0,"created cmap\n"); */
+/*  GST_DEBUG (0,"created cmap"); */
 /*  gtk_widget_set_default_colormap (smoothwave->cmap); */
 
   smoothwave->image = gtk_drawing_area_new();
@@ -175,7 +175,7 @@ gst_smoothwave_chain (GstPad *pad, GstBuffer *buf)
 
   qheight = smoothwave->height/4;
 
-/*  GST_DEBUG (0,"traversing %d\n",smoothwave->width); */
+/*  GST_DEBUG (0,"traversing %d",smoothwave->width); */
   for (i=0;i<MAX(smoothwave->width,samplecount);i++) {
     gint16 y1 = (gint32)(samples[i*2] * qheight) / 32768 +
                 qheight;
@@ -194,8 +194,8 @@ gst_smoothwave_chain (GstPad *pad, GstBuffer *buf)
       ptr++;
   }
 
-/*  GST_DEBUG (0,"drawing\n"); */
-/*  GST_DEBUG (0,"gdk_draw_indexed_image(%p,%p,%d,%d,%d,%d,%s,%p,%d,%p);\n",
+/*  GST_DEBUG (0,"drawing"); */
+/*  GST_DEBUG (0,"gdk_draw_indexed_image(%p,%p,%d,%d,%d,%d,%s,%p,%d,%p);",
         smoothwave->image->window,
        smoothwave->image->style->fg_gc[GTK_STATE_NORMAL],
        0,0,smoothwave->width,smoothwave->height,
index f2e6307..388e3be 100644 (file)
@@ -175,7 +175,7 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
   g_return_if_fail (GST_BUFFER_DATA (buf) != NULL);
 
   wavparse = GST_WAVPARSE (gst_pad_get_parent (pad));
-  GST_DEBUG (0, "gst_wavparse_chain: got buffer in '%s'\n",
+  GST_DEBUG (0, "gst_wavparse_chain: got buffer in '%s'",
           gst_object_get_name (GST_OBJECT (wavparse)));
   data = (guchar *) GST_BUFFER_DATA (buf);
   size = GST_BUFFER_SIZE (buf);
@@ -197,7 +197,7 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
   }
 
   if (wavparse->state == GST_WAVPARSE_OTHER) {
-    GST_DEBUG (0, "we're in unknown territory here, not passing on\n");
+    GST_DEBUG (0, "we're in unknown territory here, not passing on");
     return;
   }
 
@@ -210,7 +210,7 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
   if (wavparse->state == GST_WAVPARSE_UNKNOWN) {
     gint retval;
 
-    GST_DEBUG (0, "GstWavParse: checking for RIFF format\n");
+    GST_DEBUG (0, "GstWavParse: checking for RIFF format");
 
     /* create a new RIFF parser */
     wavparse->riff = gst_riff_new ();
@@ -219,13 +219,13 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
     retval = gst_riff_next_buffer (wavparse->riff, buf, 0);
     buffer_riffed = TRUE;
     if (retval < 0) {
-      GST_DEBUG (0, "sorry, isn't RIFF\n");
+      GST_DEBUG (0, "sorry, isn't RIFF");
       return;
     }
 
     /* this has to be a file of form WAVE for us to deal with it */
     if (wavparse->riff->form != gst_riff_fourcc_to_id ("WAVE")) {
-      GST_DEBUG (0, "sorry, isn't WAVE\n");
+      GST_DEBUG (0, "sorry, isn't WAVE");
       return;
     }
 
@@ -238,7 +238,7 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
     GstRiffChunk *fmt;
     GstWavParseFormat *format;
 
-    GST_DEBUG (0, "GstWavParse: looking for fmt chunk\n");
+    GST_DEBUG (0, "GstWavParse: looking for fmt chunk");
 
     /* there's a good possibility we may not have parsed this buffer */
     if (buffer_riffed == FALSE) {
@@ -274,7 +274,7 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
       gst_pad_try_set_caps (wavparse->srcpad, caps);
 
       wavparse->bps = format->wBlockAlign;
-      GST_DEBUG (0, "frequency %d, channels %d\n",
+      GST_DEBUG (0, "frequency %d, channels %d",
                 format->dwSamplesPerSec, format->wChannels); 
 
       /* we're now looking for the data chunk */
@@ -291,7 +291,7 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
     GstBuffer *newbuf;
     GstRiffChunk *datachunk;
 
-    GST_DEBUG (0, "GstWavParse: looking for data chunk\n");
+    GST_DEBUG (0, "GstWavParse: looking for data chunk");
 
     /* again, we might need to parse the buffer */
     if (buffer_riffed == FALSE) {
@@ -304,14 +304,14 @@ gst_wavparse_chain (GstPad *pad, GstBuffer *buf)
     if (datachunk != NULL) {
       gulong subsize;
 
-      GST_DEBUG (0, "data begins at %ld\n", datachunk->offset);
+      GST_DEBUG (0, "data begins at %ld", datachunk->offset);
 
       /* at this point we can ACK that we have data */
       wavparse->state = GST_WAVPARSE_DATA;
 
       /* now we construct a new buffer for the remainder */
       subsize = size - datachunk->offset;
-      GST_DEBUG (0, "sending last %ld bytes along as audio\n", subsize);
+      GST_DEBUG (0, "sending last %ld bytes along as audio", subsize);
       
       newbuf = gst_buffer_new ();
       GST_BUFFER_DATA (newbuf) = g_malloc (subsize);
index 16c45e5..fbaa903 100644 (file)
@@ -172,7 +172,7 @@ gst_ossgst_format_to_caps (gint format, gint stereo, gint rate)
   gint width = 16;
   gboolean supported = TRUE;
 
-  GST_DEBUG (0, "have format 0x%08x %d %d\n", format, stereo, rate); 
+  GST_DEBUG (0, "have format 0x%08x %d %d", format, stereo, rate); 
 
   switch (format) {
     case AFMT_MU_LAW:
@@ -341,7 +341,7 @@ gst_ossgst_spawn_process (GstOssGst *ossgst)
   pipe(ossgst->fdin);
   pipe(ossgst->fdout);
 
-  GST_DEBUG (0, "about to fork\n");
+  GST_DEBUG (0, "about to fork");
 
   if((ossgst->childpid = fork()) == -1)
   {
@@ -349,13 +349,13 @@ gst_ossgst_spawn_process (GstOssGst *ossgst)
     gst_element_error(GST_ELEMENT(ossgst),"forking");
     return FALSE;
   }
-  GST_DEBUG (0,"forked %d\n", ossgst->childpid);
+  GST_DEBUG (0,"forked %d", ossgst->childpid);
 
   if(ossgst->childpid == 0)
   {
     gchar **args;
 
-    GST_DEBUG (0, "fork command %d\n", ossgst->childpid);
+    GST_DEBUG (0, "fork command %d", ossgst->childpid);
 
     ld_preload = getenv ("LD_PRELOAD");
 
index 64218d7..9c1f78a 100644 (file)
@@ -454,7 +454,7 @@ gst_osssink_chain (GstPad *pad, GstBuffer *buf)
           queued = (ospace.fragstotal * ospace.fragsize) - ospace.bytes;
           time = osssink->offset + (optr.bytes) * 1000000LL / osssink->bps;
 
-         GST_DEBUG (GST_CAT_PLUGIN_INFO, "sync %llu %llu %d\n", buftime, time, queued);
+         GST_DEBUG (GST_CAT_PLUGIN_INFO, "sync %llu %llu %d", buftime, time, queued);
 
           granularity = ospace.fragsize;
           /* granularity = size; */
index e493e55..c9ead8c 100644 (file)
@@ -189,7 +189,7 @@ gst_osssrc_get (GstPad *pad)
   g_return_val_if_fail (pad != NULL, NULL);
   src = GST_OSSSRC(gst_pad_get_parent (pad));
 
-  GST_DEBUG (GST_CAT_PLUGIN_INFO, "attempting to read something from soundcard\n");
+  GST_DEBUG (GST_CAT_PLUGIN_INFO, "attempting to read something from soundcard");
 
   buf = gst_buffer_new ();
   g_return_val_if_fail (buf, NULL);
@@ -234,7 +234,7 @@ gst_osssrc_get (GstPad *pad)
   if (src->format == 16) readsamples /= 2;
   src->samples_since_basetime += readsamples;
 
-  GST_DEBUG (GST_CAT_PLUGIN_INFO, "pushed buffer from soundcard of %ld bytes, timestamp %lld\n", readbytes, GST_BUFFER_TIMESTAMP (buf));
+  GST_DEBUG (GST_CAT_PLUGIN_INFO, "pushed buffer from soundcard of %ld bytes, timestamp %lld", readbytes, GST_BUFFER_TIMESTAMP (buf));
   return buf;
 }
 
@@ -318,21 +318,21 @@ gst_osssrc_change_state (GstElement *element)
   /* GstOssSrc *src = GST_OSSSRC (element); */
   
   g_return_val_if_fail (GST_IS_OSSSRC (element), FALSE);
-  GST_DEBUG (GST_CAT_PLUGIN_INFO, "osssrc: state change\n");
+  GST_DEBUG (GST_CAT_PLUGIN_INFO, "osssrc: state change");
   /* if going down into NULL state, close the file if it's open */
   if (GST_STATE_PENDING (element) == GST_STATE_NULL) {
     if (GST_FLAG_IS_SET (element, GST_OSSSRC_OPEN))
       gst_osssrc_close_audio (GST_OSSSRC (element));
   /* otherwise (READY or higher) we need to open the sound card */
   } else {
-    GST_DEBUG (GST_CAT_PLUGIN_INFO, "DEBUG: osssrc: ready or higher\n");
+    GST_DEBUG (GST_CAT_PLUGIN_INFO, "DEBUG: osssrc: ready or higher");
 
     if (!GST_FLAG_IS_SET (element, GST_OSSSRC_OPEN)) { 
       if (!gst_osssrc_open_audio (GST_OSSSRC (element)))
         return GST_STATE_FAILURE;
       else
       {
-       GST_DEBUG (GST_CAT_PLUGIN_INFO, "osssrc: device opened successfully\n");
+       GST_DEBUG (GST_CAT_PLUGIN_INFO, "osssrc: device opened successfully");
        /* thomas: we can't set caps here because the element is
         * not actually ready yet */
       }
@@ -358,7 +358,7 @@ gst_osssrc_open_audio (GstOssSrc *src)
 
     /* set card state */
     gst_osssrc_sync_parms (src);
-    GST_DEBUG (GST_CAT_PLUGIN_INFO,"opened audio: %s\n",src->device);
+    GST_DEBUG (GST_CAT_PLUGIN_INFO,"opened audio: %s",src->device);
     
     GST_FLAG_SET (src, GST_OSSSRC_OPEN);
     return TRUE;