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:
print_format = GULONG_FROM_LE (aasink->format);
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);
g_signal_emit( G_OBJECT (aasink), gst_aasink_signals[SIGNAL_HAVE_SIZE], 0,
aasink->width, aasink->height);
aa_imgwidth (aasink->context), /* dw */
aa_imgheight (aasink->context)); /* dh */
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));
if (aasink->clock) {
gst_element_clock_wait (GST_ELEMENT (aasink), aasink->clock, GST_BUFFER_TIMESTAMP(buf));
g_return_val_if_fail (pad != NULL, NULL);
esdmon = GST_ESDMON(gst_pad_get_parent (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);
buf = gst_buffer_new ();
g_return_val_if_fail (buf, NULL);
if (esdmon->depth == 16) readsamples /= 2;
esdmon->samples_since_basetime += readsamples;
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));
if (src->depth == 16) esdformat |= ESD_BITS16;
else if (src->depth == 8) esdformat |= ESD_BITS8;
else {
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 {
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);
- 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 ) {
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");
GST_FLAG_UNSET (src, GST_ESDMON_OPEN);
GST_FLAG_UNSET (src, GST_ESDMON_OPEN);
- GST_DEBUG (0, "esdmon: closed sound device\n");
+ GST_DEBUG (0, "esdmon: closed sound device");
}
static GstElementStateReturn
}
static GstElementStateReturn
if (GST_BUFFER_DATA (buf) != NULL) {
if (!esdsink->mute && esdsink->fd >= 0) {
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));
}
esdsink->fd, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
write (esdsink->fd, GST_BUFFER_DATA (buf), GST_BUFFER_SIZE (buf));
}
if (sink->depth == 16) esdformat |= ESD_BITS16;
else if (sink->depth == 8) esdformat |= ESD_BITS8;
else {
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 {
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);
- 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 ) {
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");
GST_FLAG_UNSET (sink, GST_ESDSINK_OPEN);
GST_FLAG_UNSET (sink, GST_ESDSINK_OPEN);
- GST_DEBUG (0, "esdsink: closed sound device\n");
+ GST_DEBUG (0, "esdsink: closed sound device");
}
static GstElementStateReturn
}
static GstElementStateReturn
this = (FlacEnc *)object;
switch (prop_id) {
default:
this = (FlacEnc *)object;
switch (prop_id) {
default:
- GST_DEBUG(0, "Unknown arg %d\n", prop_id);
+ GST_DEBUG(0, "Unknown arg %d", prop_id);
switch (prop_id) {
default:
switch (prop_id) {
default:
- GST_DEBUG(0, "Unknown arg %d\n", prop_id);
+ GST_DEBUG(0, "Unknown arg %d", prop_id);
static void
gst_jpegdec_init_source (j_decompress_ptr cinfo)
{
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)
{
}
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)
{
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)
{
}
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)
{
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)
{
}
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);
/* 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);
data = (guchar *)GST_BUFFER_DATA(buf);
size = GST_BUFFER_SIZE(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_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;
jpeg_read_header(&jpegdec->cinfo, TRUE);
r_h = jpegdec->cinfo.cur_comp_info[0]->h_samp_factor;
jpegdec->cinfo.out_color_space = JCS_YCbCr;
jpegdec->cinfo.dct_method = JDCT_IFAST;
jpegdec->cinfo.raw_data_out = TRUE;
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;
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 +
outbuf = gst_buffer_new();
outsize = GST_BUFFER_SIZE(outbuf) = width*height +
- 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;
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;
jpeg_read_raw_data(&jpegdec->cinfo, jpegdec->line, r_v*DCTSIZE);
}
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);
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);
gst_pad_push(jpegdec->srcpad, outbuf);
gst_buffer_unref(buf);
static void
gst_jpegenc_init_destination (j_compress_ptr cinfo)
{
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)
{
}
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)
{
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");
jpegenc->cinfo.err = jpeg_std_error(&jpegenc->jerr);
jpeg_create_compress(&jpegenc->cinfo);
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;
jpegenc->line[0] = NULL;
jpegenc->line[1] = NULL;
jpegenc->line[2] = NULL;
guint size = 0;
gint width, height;
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;
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;
jpeg_set_defaults(&jpegenc->cinfo);
jpegenc->cinfo.dct_method = JDCT_FASTEST;
switch (jpegenc->format) {
case GST_COLORSPACE_RGB24:
size = 3;
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;
jpegenc->cinfo.in_color_space = JCS_RGB;
jpegenc->cinfo.raw_data_in = FALSE;
break;
size = 2;
jpegenc->cinfo.raw_data_in = TRUE;
jpegenc->cinfo.in_color_space = JCS_YCbCr;
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;
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;
jpegenc->line[2] = g_realloc(jpegenc->line[2], height*sizeof(char*)/2);
}
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");
break;
default:
printf("gst_jpegenc_resync: unsupported colorspace, using RGB\n");
jpeg_suppress_tables(&jpegenc->cinfo, TRUE);
jpegenc->buffer = NULL;
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");
GstJpegEnc *jpegenc;
GstBuffer *newbuf;
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);
g_return_val_if_fail (pad != NULL, NULL);
g_return_val_if_fail (GST_IS_PAD (pad), NULL);
if (jpegenc->buffer == NULL || GST_BUFFER_REFCOUNT(jpegenc->buffer) != 1) {
if (jpegenc->buffer) gst_buffer_unref(jpegenc->buffer);
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;
newbuf = jpegenc->buffer = gst_buffer_new();
GST_BUFFER_DATA(newbuf) = g_malloc(jpegenc->bufsize);
GST_BUFFER_SIZE(newbuf) = jpegenc->bufsize;
data = GST_BUFFER_DATA(buf);
size = GST_BUFFER_SIZE(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();
GST_OBJECT_NAME (jpegenc));
outbuf = gst_buffer_new();
jpeg_start_compress(&jpegenc->cinfo, TRUE);
width2 = width>>1;
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++) {
for (i = 0; i < height; i += 2*DCTSIZE) {
for (j=0, k=0; j<2*DCTSIZE;j+=2, k++) {
jpeg_write_raw_data(&jpegenc->cinfo, jpegenc->line, 2*DCTSIZE);
}
jpeg_finish_compress(&jpegenc->cinfo);
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);
GST_BUFFER_SIZE(outbuf) = (((outsize - jpegenc->jdest.free_in_buffer)+3)&~3);
for (i=0;i<desc->PortCount;i++) {
if (LADSPA_IS_PORT_AUDIO(desc->PortDescriptors[i]) &&
LADSPA_IS_PORT_INPUT(desc->PortDescriptors[i])){
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])){
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])){
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;
}
}
klass->control_portnums[controlcount++] = i;
}
}
static void
gst_ladspa_force_src_caps(GstLADSPA *ladspa, GstPad *pad)
{
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",
gst_pad_try_set_caps (pad, gst_caps_new (
"ladspa_src_caps",
"audio/raw",
ladspa->controls[cid] = val;
}
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]);
control_info = &(oclass->control_info[cid]);
if (control_info->name == NULL) return;
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) {
/* now see what type it is */
if (control_info->toggled) {
}
/* instantiate the plugin */
}
/* 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);
ladspa->handle = desc->instantiate(desc,ladspa->samplerate);
g_return_val_if_fail (ladspa->handle != NULL, FALSE);
/* walk through the ports and add all the arguments */
for (i=0;i<oclass->numcontrols;i++) {
/* connect the argument to the plugin */
/* 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]));
desc->connect_port(ladspa->handle,
oclass->control_portnums[i],
&(ladspa->controls[i]));
GstLADSPA *ladspa = (GstLADSPA*)element;
desc = ladspa->descriptor;
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);
switch (GST_STATE_TRANSITION (element)) {
case GST_STATE_NULL_TO_READY:
gst_ladspa_activate(ladspa);
gst_ladspa_deactivate(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) {
/* activate the plugin (function might be null) */
if (desc->activate != NULL) {
LADSPA_Descriptor *desc;
desc = ladspa->descriptor;
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)) {
/* deactivate the plugin (function might be null) */
if (ladspa->activated && (desc->deactivate != NULL)) {
/* first get all the necessary data from the input ports */
for (i=0;i<oclass->numsinkpads;i++){
/* 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) {
raw_in = gst_bytestream_peek_bytes (ladspa->bytestreams[i], ladspa->buffersize * sizeof (LADSPA_Data));
if (raw_in == NULL) {
/* 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. */
/* 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
}
/* we need to create some zeroed out data to feed to this port of the
desc->connect_port (ladspa->handle, oclass->sinkpad_portnums[i], NULL);
}
for (i=0;i<oclass->numsrcpads;i++) {
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);
gst_pad_push (ladspa->srcpads[i], buffers_out[i]);
buffers_out[i] = NULL;
desc->connect_port (ladspa->handle, oclass->srcpad_portnums[i], NULL);
mikmod = GST_MIKMOD (element);
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)
/* if going down into NULL state, close the file if it's open */
if (GST_STATE_PENDING (element) == GST_STATE_READY)
auparse = GST_AUPARSE (gst_pad_get_parent (pad));
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);
gst_element_get_name (GST_ELEMENT (auparse)));
data = GST_BUFFER_DATA (buf);
g_print ("offset %ld, size %ld, encoding %ld, frequency %ld, channels %ld\n",
auparse->offset,auparse->size,auparse->encoding,
auparse->frequency,auparse->channels);
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);
auparse->offset,auparse->size,auparse->encoding,
auparse->frequency,auparse->channels);
- 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)
{
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));
g_return_if_fail (GST_BUFFER_DATA(buf) != NULL);
avi_audio_decoder = GST_AVI_AUDIO_DECODER (gst_pad_get_parent (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);
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);
#define AVI_TYPE_AUDIO 2
gint media_type = 0;
#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");
caps = gst_pad_get_caps (pad);
format = gst_caps_get_string (caps, "format");
gchar *data = GST_BUFFER_DATA (buf);
GstCaps *new;
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;
if (strncmp (&data[0], "RIFF", 4)) return NULL;
if (strncmp (&data[8], "AVI ", 4)) return NULL;
gchar *data = GST_BUFFER_DATA (buf);
GstCaps *new;
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;
if (GUINT32_FROM_LE (((guint32 *)data)[0]) != GST_RIFF_TAG_RIFF)
return NULL;
case GST_RIFF_00db:
case GST_RIFF_00__:
{
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])) {
chunkid, *chunksize);
if (GST_PAD_IS_CONNECTED (avi_demux->video_pad[0])) {
avi_demux->video_need_flush[0] = FALSE;
}
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_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++;
}
*chunksize, &avi_demux->video_pad[0]);
avi_demux->current_frame++;
}
- 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) {
chunkid, *chunksize);
if (avi_demux->init_audio) {
GST_BUFFER_TIMESTAMP (buf) = -1LL;
if (avi_demux->audio_need_flush[0]) {
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 */
}
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_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:
}
}
*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;
}
*chunksize = (*chunksize + 1) & ~1;
break;
}
if (!GST_CAPS_IS_FIXED (vscaps))
return GST_PAD_CONNECT_DELAYED;
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)
{
for (caps = vscaps; caps != NULL; caps = vscaps = vscaps->next)
{
gchar *data = GST_BUFFER_DATA (buf);
GstCaps *new;
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;
if (GUINT32_FROM_LE (((guint32 *)data)[0]) != GST_RIFF_TAG_RIFF)
return NULL;
g_return_if_fail (element != NULL);
g_return_if_fail (GST_IS_FLXDEC(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);
flxdec = GST_FLXDEC(element);
goom = GST_GOOM (gst_pad_get_parent (pad));
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);
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);
if (GST_BUFFER_TIMESTAMP (bufin) < goom->next_time || samples_in < 1024) {
gst_buffer_unref (bufin);
goom_init (goom->width, goom->height);
goom_init (goom->width, goom->height);
- GST_DEBUG (0, "making new pad\n");
+ GST_DEBUG (0, "making new pad");
caps = GST_CAPS_NEW (
"goomsrc",
caps = GST_CAPS_NEW (
"goomsrc",
gst_buffer_unref (bufin);
gst_buffer_unref (bufin);
- GST_DEBUG (0, "GOOM: exiting chainfunc\n");
+ GST_DEBUG (0, "GOOM: exiting chainfunc");
data = GST_BUFFER_DATA(buf);
size = GST_BUFFER_SIZE(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));
outbuf = gst_buffer_new();
GST_BUFFER_DATA(outbuf) = g_malloc(GST_BUFFER_SIZE(buf));
monoscope = GST_MONOSCOPE (gst_pad_get_parent (pad));
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);
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) {
/* 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;
}
gst_buffer_unref (bufin);
return;
}
monoscope->visstate = monoscope_init (monoscope->width, monoscope->height);
g_assert(monoscope->visstate != 0);
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",
caps = GST_CAPS_NEW (
"monoscopesrc",
gst_buffer_unref (bufin);
gst_buffer_unref (bufin);
- GST_DEBUG (0, "Monoscope: exiting chainfunc\n");
+ GST_DEBUG (0, "Monoscope: exiting chainfunc");
/* gtk_widget_set_default_colormap (gdk_rgb_get_cmap()); */
/* gtk_widget_set_default_visual (gdk_rgb_get_visual()); */
/* 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);
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);
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();
/* gtk_widget_set_default_colormap (smoothwave->cmap); */
smoothwave->image = gtk_drawing_area_new();
qheight = smoothwave->height/4;
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;
for (i=0;i<MAX(smoothwave->width,samplecount);i++) {
gint16 y1 = (gint32)(samples[i*2] * qheight) / 32768 +
qheight;
-/* 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,
smoothwave->image->window,
smoothwave->image->style->fg_gc[GTK_STATE_NORMAL],
0,0,smoothwave->width,smoothwave->height,
g_return_if_fail (GST_BUFFER_DATA (buf) != NULL);
wavparse = GST_WAVPARSE (gst_pad_get_parent (pad));
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);
gst_object_get_name (GST_OBJECT (wavparse)));
data = (guchar *) GST_BUFFER_DATA (buf);
size = GST_BUFFER_SIZE (buf);
}
if (wavparse->state == GST_WAVPARSE_OTHER) {
}
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");
if (wavparse->state == GST_WAVPARSE_UNKNOWN) {
gint retval;
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 ();
/* create a new RIFF parser */
wavparse->riff = gst_riff_new ();
retval = gst_riff_next_buffer (wavparse->riff, buf, 0);
buffer_riffed = TRUE;
if (retval < 0) {
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")) {
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");
GstRiffChunk *fmt;
GstWavParseFormat *format;
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) {
/* there's a good possibility we may not have parsed this buffer */
if (buffer_riffed == FALSE) {
gst_pad_try_set_caps (wavparse->srcpad, caps);
wavparse->bps = format->wBlockAlign;
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 */
format->dwSamplesPerSec, format->wChannels);
/* we're now looking for the data chunk */
GstBuffer *newbuf;
GstRiffChunk *datachunk;
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) {
/* again, we might need to parse the buffer */
if (buffer_riffed == FALSE) {
if (datachunk != NULL) {
gulong subsize;
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;
/* 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);
newbuf = gst_buffer_new ();
GST_BUFFER_DATA (newbuf) = g_malloc (subsize);
gint width = 16;
gboolean supported = TRUE;
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:
switch (format) {
case AFMT_MU_LAW:
pipe(ossgst->fdin);
pipe(ossgst->fdout);
pipe(ossgst->fdin);
pipe(ossgst->fdout);
- GST_DEBUG (0, "about to fork\n");
+ GST_DEBUG (0, "about to fork");
if((ossgst->childpid = fork()) == -1)
{
if((ossgst->childpid = fork()) == -1)
{
gst_element_error(GST_ELEMENT(ossgst),"forking");
return FALSE;
}
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;
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");
ld_preload = getenv ("LD_PRELOAD");
queued = (ospace.fragstotal * ospace.fragsize) - ospace.bytes;
time = osssink->offset + (optr.bytes) * 1000000LL / osssink->bps;
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; */
granularity = ospace.fragsize;
/* granularity = size; */
g_return_val_if_fail (pad != NULL, NULL);
src = GST_OSSSRC(gst_pad_get_parent (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);
buf = gst_buffer_new ();
g_return_val_if_fail (buf, NULL);
if (src->format == 16) readsamples /= 2;
src->samples_since_basetime += readsamples;
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));
/* GstOssSrc *src = GST_OSSSRC (element); */
g_return_val_if_fail (GST_IS_OSSSRC (element), FALSE);
/* 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 {
/* 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
{
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 */
}
/* thomas: we can't set caps here because the element is
* not actually ready yet */
}
/* set card state */
gst_osssrc_sync_parms (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;
GST_FLAG_SET (src, GST_OSSSRC_OPEN);
return TRUE;