Commit 29aa39e9 authored by Andy Wingo's avatar Andy Wingo

filter newlines out of GST_DEBUG statements to reflect new core behavior fixes...

filter newlines out of GST_DEBUG statements to reflect new core behavior fixes to adder's caps, again

Original commit message from CVS:
* filter newlines out of GST_DEBUG statements to reflect new core behavior
* fixes to adder's caps, again
parent 9e745b47
......@@ -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));
......
......@@ -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
......
......@@ -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
......
......@@ -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;
}
}
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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)
......
......@@ -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);
......
......@@ -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);
}
......@@ -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);
......
......@@ -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;
......
......@@ -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;
}
......
......@@ -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)
{
......
......@@ -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;
......
......@@ -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);
......
......@@ -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");
}
......
......@@ -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));
......
......@@ -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");
}
......
......@@ -124,12 +124,12 @@ gst_smoothwave_init (GstSmoothWave *smoothwave)
/* gtk_widget_set_default_colormap (gdk_rgb_get_cmap()); */