Commit 90da904f authored by Benjamin Otte's avatar Benjamin Otte

compatibility fix for new GST_DEBUG stuff.

Original commit message from CVS:
compatibility fix for new GST_DEBUG stuff.
Includes fixes for missing includes for config.h and unistd.h

I only ensured for plugins I can build that they work, so if some of them are still broken, you gotta fix them yourselves unfortunately.
parent 7519af56
common @ 2a3efdc2
Subproject commit 4e379694ae9ff9843d65cf08928642eea44abdf8
Subproject commit 2a3efdc282fb1ecfd2720dea40523b3441f10fed
......@@ -968,8 +968,6 @@ dnl ######################################################################
dnl # Check command line parameters, and set shell variables accordingly #
dnl ######################################################################
GST_DEBUGINFO
AC_ARG_ENABLE(libmmx,
AC_HELP_STRING([--enable-libmmx],[use libmmx, if available]),
[case "${enableval}" in
......
......@@ -17,6 +17,9 @@
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <config.h>
#include <string.h>
......@@ -246,7 +249,7 @@ gst_aasink_sinkconnect (GstPad *pad, GstCaps *caps)
/* FIXME aasink->format is never set */
GST_DEBUG (0, "aasink: setting %08lx (" GST_FOURCC_FORMAT ")",
GST_DEBUG ("aasink: setting %08lx (" GST_FOURCC_FORMAT ")",
aasink->format, GST_FOURCC_ARGS(aasink->format));
g_signal_emit( G_OBJECT (aasink), gst_aasink_signals[SIGNAL_HAVE_SIZE], 0,
......@@ -346,7 +349,7 @@ gst_aasink_chain (GstPad *pad, GstBuffer *buf)
aa_imgwidth (aasink->context), /* dw */
aa_imgheight (aasink->context)); /* dh */
GST_DEBUG (0,"videosink: clock wait: %" G_GUINT64_FORMAT, GST_BUFFER_TIMESTAMP(buf));
GST_DEBUG ("videosink: clock wait: %" G_GUINT64_FORMAT, GST_BUFFER_TIMESTAMP(buf));
if (aasink->clock) {
GstClockID id = gst_clock_new_single_shot_id (aasink->clock, GST_BUFFER_TIMESTAMP(buf));
......
......@@ -17,6 +17,9 @@
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h>
/* First, include the header file for the plugin, to bring in the
......
......@@ -20,8 +20,12 @@
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <gst/gst.h>
#include <esd.h>
#include <unistd.h>
#define GST_TYPE_ESDMON \
(gst_esdmon_get_type())
......@@ -278,7 +282,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");
GST_DEBUG ("attempting to read something from esdmon");
buf = gst_buffer_new ();
g_return_val_if_fail (buf, NULL);
......@@ -324,7 +328,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 %" G_GINT64_FORMAT, readbytes, GST_BUFFER_TIMESTAMP (buf));
GST_DEBUG ("pushed buffer from esdmon of %ld bytes, timestamp %" G_GINT64_FORMAT, readbytes, GST_BUFFER_TIMESTAMP (buf));
return buf;
}
......@@ -442,21 +446,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)", src->depth);
GST_DEBUG ("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)", src->channels);
GST_DEBUG ("esdmon: invalid number of channels (%d)", src->channels);
return FALSE;
}
GST_DEBUG (0, "esdmon: attempting to open connection to esound server");
GST_DEBUG ("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");
GST_DEBUG ("esdmon: can't open connection to esound server");
return FALSE;
}
......@@ -475,7 +479,7 @@ gst_esdmon_close_audio (GstEsdmon *src)
GST_FLAG_UNSET (src, GST_ESDMON_OPEN);
GST_DEBUG (0, "esdmon: closed sound device");
GST_DEBUG ("esdmon: closed sound device");
}
static GstElementStateReturn
......
......@@ -20,8 +20,12 @@
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "esdsink.h"
#include <esd.h>
#include <unistd.h>
/* elementfactory information */
static GstElementDetails esdsink_details = {
......@@ -197,7 +201,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",
GST_DEBUG ("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));
}
......@@ -288,21 +292,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)", sink->depth);
GST_DEBUG ("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)", sink->channels);
GST_DEBUG ("esdsink: invalid number of channels (%d)", sink->channels);
return FALSE;
}
GST_DEBUG (0, "esdsink: attempting to open connection to esound server");
GST_DEBUG ("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");
GST_DEBUG ("esdsink: can't open connection to esound server");
return FALSE;
}
......@@ -318,7 +322,7 @@ gst_esdsink_close_audio (GstEsdsink *sink)
close(sink->fd);
sink->fd = -1;
GST_DEBUG (0, "esdsink: closed sound device");
GST_DEBUG ("esdsink: closed sound device");
}
static GstElementStateReturn
......
......@@ -17,6 +17,9 @@
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h>
#include <sys/soundcard.h>
......@@ -211,7 +214,7 @@ gst_flacdec_update_metadata (FlacDec *flacdec, const FLAC__StreamMetadata *metad
number_of_comments = metadata->data.vorbis_comment.num_comments;
value = NULL;
GST_DEBUG (GST_CAT_CAPS, "%d tag(s) found", number_of_comments);
GST_DEBUG ("%d tag(s) found", number_of_comments);
for (cursor = 0; cursor < number_of_comments; cursor++)
{
str_ptr = metadata->data.vorbis_comment.comments[cursor].entry;
......@@ -225,7 +228,7 @@ gst_flacdec_update_metadata (FlacDec *flacdec, const FLAC__StreamMetadata *metad
entry = gst_props_entry_new (name, GST_PROPS_STRING_TYPE, value);
gst_props_add_entry (props, (GstPropsEntry *) entry);
GST_DEBUG (GST_CAT_CAPS, "%s : %s", name, value);
GST_DEBUG ("%s : %s", name, value);
g_free (name);
g_free (value);
......@@ -286,7 +289,7 @@ gst_flacdec_error_callback (const FLAC__SeekableStreamDecoder *decoder,
break;
}
GST_DEBUG (0, error);
GST_DEBUG (error);
gst_element_error (GST_ELEMENT (flacdec), error);
}
......@@ -299,7 +302,7 @@ gst_flacdec_seek (const FLAC__SeekableStreamDecoder *decoder,
flacdec = GST_FLACDEC (client_data);
GST_DEBUG (0, "seek %" G_GINT64_FORMAT, position);
GST_DEBUG ("seek %" G_GINT64_FORMAT, position);
if (!gst_bytestream_seek (flacdec->bs, position, GST_SEEK_METHOD_SET)) {
return FLAC__SEEKABLE_STREAM_DECODER_SEEK_STATUS_ERROR;
}
......@@ -318,7 +321,7 @@ gst_flacdec_tell (const FLAC__SeekableStreamDecoder *decoder,
if (*position == -1)
return FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_ERROR;
GST_DEBUG (0, "tell %" G_GINT64_FORMAT, *position);
GST_DEBUG ("tell %" G_GINT64_FORMAT, *position);
return FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_OK;
}
......@@ -335,7 +338,7 @@ gst_flacdec_length (const FLAC__SeekableStreamDecoder *decoder,
if (*length == -1)
return FLAC__SEEKABLE_STREAM_DECODER_TELL_STATUS_ERROR;
GST_DEBUG (0, "length %" G_GINT64_FORMAT, *length);
GST_DEBUG ("length %" G_GINT64_FORMAT, *length);
return FLAC__SEEKABLE_STREAM_DECODER_LENGTH_STATUS_OK;
}
......@@ -347,7 +350,7 @@ gst_flacdec_eof (const FLAC__SeekableStreamDecoder *decoder,
FlacDec *flacdec;
flacdec = GST_FLACDEC (client_data);
GST_DEBUG (0, "eof %d", flacdec->eos);
GST_DEBUG ("eof %d", flacdec->eos);
return flacdec->eos;
}
......@@ -375,7 +378,7 @@ gst_flacdec_read (const FLAC__SeekableStreamDecoder *decoder,
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_EOS:
GST_DEBUG (0, "eos");
GST_DEBUG ("eos");
flacdec->eos = TRUE;
gst_event_unref (event);
if (avail == 0) {
......@@ -383,7 +386,7 @@ gst_flacdec_read (const FLAC__SeekableStreamDecoder *decoder,
}
break;
case GST_EVENT_DISCONTINUOUS:
GST_DEBUG (0, "discont");
GST_DEBUG ("discont");
/* we are not yet sending the discont, we'll do that in the next write operation */
flacdec->need_discont = TRUE;
......@@ -435,7 +438,7 @@ gst_flacdec_write (const FLAC__SeekableStreamDecoder *decoder,
}
if (GST_PAD_IS_USABLE (flacdec->srcpad)) {
GST_DEBUG (0, "send discont");
GST_DEBUG ("send discont");
format = GST_FORMAT_TIME;
gst_pad_convert (flacdec->srcpad, GST_FORMAT_DEFAULT,
......@@ -516,39 +519,39 @@ gst_flacdec_loop (GstElement *element)
flacdec = GST_FLACDEC (element);
GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: entering loop");
GST_DEBUG ("flacdec: entering loop");
if (flacdec->init) {
GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: initializing decoder");
GST_DEBUG ("flacdec: initializing decoder");
FLAC__seekable_stream_decoder_init (flacdec->decoder);
/* FLAC__seekable_stream_decoder_process_metadata (flacdec->decoder); */
flacdec->init = FALSE;
}
if (flacdec->seek_pending) {
GST_DEBUG (GST_CAT_EVENT, "perform seek to sample %" G_GINT64_FORMAT,
GST_DEBUG ("perform seek to sample %" G_GINT64_FORMAT,
flacdec->seek_value);
if (FLAC__seekable_stream_decoder_seek_absolute (flacdec->decoder,
flacdec->seek_value))
{
flacdec->total_samples = flacdec->seek_value;
GST_DEBUG (GST_CAT_EVENT, "seek done");
GST_DEBUG ("seek done");
}
else {
GST_DEBUG (GST_CAT_EVENT, "seek failed");
GST_DEBUG ("seek failed");
}
flacdec->seek_pending = FALSE;
}
GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: processing single");
GST_DEBUG ("flacdec: processing single");
res = FLAC__seekable_stream_decoder_process_single (flacdec->decoder);
GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: checking for EOS");
GST_DEBUG ("flacdec: checking for EOS");
if (FLAC__seekable_stream_decoder_get_state (flacdec->decoder) ==
FLAC__SEEKABLE_STREAM_DECODER_END_OF_STREAM)
{
GstEvent *event;
GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: sending EOS event");
GST_DEBUG ("flacdec: sending EOS event");
FLAC__seekable_stream_decoder_finish(flacdec->decoder);
flacdec->init = TRUE;
......@@ -558,7 +561,7 @@ gst_flacdec_loop (GstElement *element)
}
gst_element_set_eos (element);
}
GST_DEBUG (GST_CAT_PLUGIN_INFO, "flacdec: _loop end");
GST_DEBUG ("flacdec: _loop end");
}
GST_PAD_FORMATS_FUNCTION (gst_flacdec_get_src_formats,
......
......@@ -18,6 +18,9 @@
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdlib.h>
#include <string.h>
......
......@@ -20,6 +20,9 @@
* Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <gst/gst.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <string.h>
......
......@@ -18,6 +18,9 @@
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h>
/*#define DEBUG_ENABLED*/
......@@ -88,38 +91,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");
GST_DEBUG ("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");
GST_DEBUG ("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");
GST_DEBUG ("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");
GST_DEBUG ("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");
GST_DEBUG ("gst_jpegdec_chain: term_source");
}
static void
gst_jpegdec_init (GstJpegDec *jpegdec)
{
GST_DEBUG (0,"gst_jpegdec_init: initializing");
GST_DEBUG ("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);
......@@ -265,7 +268,7 @@ static void guarantee_huff_tables(j_decompress_ptr dinfo)
(dinfo->dc_huff_tbl_ptrs[1] == NULL) &&
(dinfo->ac_huff_tbl_ptrs[0] == NULL) &&
(dinfo->ac_huff_tbl_ptrs[1] == NULL) ) {
GST_DEBUG (GST_CAT_PLUGIN_INFO,
GST_DEBUG (
"Generating standard Huffman tables for this frame.");
std_huff_tables(dinfo);
}
......@@ -298,14 +301,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'",size,
GST_DEBUG ("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", *(gulong *)data);
GST_DEBUG ("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;
......@@ -320,12 +323,12 @@ 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");
GST_DEBUG ("gst_jpegdec_chain: starting decompress");
guarantee_huff_tables(&jpegdec->cinfo);
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", width, height);
GST_DEBUG ("gst_jpegdec_chain: width %d, height %d", width, height);
outbuf = gst_buffer_new();
outsize = GST_BUFFER_SIZE(outbuf) = width*height +
......@@ -356,7 +359,7 @@ gst_jpegdec_chain (GstPad *pad, GstBuffer *buf)
width2 = width >> 1;
GST_DEBUG (0,"gst_jpegdec_chain: decompressing %u", jpegdec->cinfo.rec_outbuf_height);
GST_DEBUG ("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;
......@@ -373,10 +376,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");
GST_DEBUG ("gst_jpegdec_chain: decompressing finished");
jpeg_finish_decompress(&jpegdec->cinfo);
GST_DEBUG (0,"gst_jpegdec_chain: sending buffer");
GST_DEBUG ("gst_jpegdec_chain: sending buffer");
gst_pad_push(jpegdec->srcpad, outbuf);
gst_buffer_unref(buf);
......
......@@ -18,6 +18,9 @@
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string.h>
#include "gstjpegenc.h"
......@@ -98,19 +101,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");
GST_DEBUG ("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 !!!");
GST_DEBUG ("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");
GST_DEBUG ("gst_jpegenc_chain: term_source");
}
static void
......@@ -134,7 +137,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");
GST_DEBUG ("gst_jpegenc_init: setting line buffers");
jpegenc->line[0] = NULL;
jpegenc->line[1] = NULL;
jpegenc->line[2] = NULL;
......@@ -154,13 +157,13 @@ gst_jpegenc_resync (GstJpegEnc *jpegenc)
guint size = 0;
gint width, height;
GST_DEBUG (0,"gst_jpegenc_resync: resync");
GST_DEBUG ("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", width, height);
GST_DEBUG ("gst_jpegenc_resync: wdith %d, height %d", width, height);
jpeg_set_defaults(&jpegenc->cinfo);
jpegenc->cinfo.dct_method = JDCT_FASTEST;
......@@ -172,7 +175,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");
GST_DEBUG ("gst_jpegenc_resync: setting format to RGB24");
jpegenc->cinfo.in_color_space = JCS_RGB;
jpegenc->cinfo.raw_data_in = FALSE;
break;
......@@ -180,7 +183,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");
GST_DEBUG ("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;
......@@ -194,7 +197,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");
GST_DEBUG ("gst_jpegenc_resync: setting format done");
break;
default:
printf("gst_jpegenc_resync: unsupported colorspace, using RGB\n");
......@@ -209,7 +212,7 @@ gst_jpegenc_resync (GstJpegEnc *jpegenc)
jpeg_suppress_tables(&jpegenc->cinfo, TRUE);
jpegenc->buffer = NULL;
GST_DEBUG (0,"gst_jpegenc_resync: resync done");
GST_DEBUG ("gst_jpegenc_resync: resync done");
}
static GstBuffer*
......@@ -218,7 +221,7 @@ gst_jpegenc_get (GstPad *pad)
GstJpegEnc *jpegenc;
GstBuffer *newbuf;
GST_DEBUG (0,"gst_jpegenc_chain: pull buffer");
GST_DEBUG ("gst_jpegenc_chain: pull buffer");
g_return_val_if_fail (pad != NULL, NULL);
g_return_val_if_fail (GST_IS_PAD (pad), NULL);
......@@ -227,7 +230,7 @@ gst_jpegenc_get (GstPad *pad)
if (jpegenc->buffer == NULL || GST_BUFFER_REFCOUNT_VALUE(jpegenc->buffer) != 1) {
if (jpegenc->buffer) gst_buffer_unref(jpegenc->buffer);
GST_DEBUG (0,"gst_jpegenc_chain: new buffer");
GST_DEBUG ("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;
......@@ -260,7 +263,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'",size,
GST_DEBUG ("gst_jpegenc_chain: got buffer of %ld bytes in '%s'",size,
GST_OBJECT_NAME (jpegenc));
outbuf = gst_buffer_new();
......@@ -281,7 +284,7 @@ gst_jpegenc_chain (GstPad *pad, GstBuffer *buf)
jpeg_start_compress(&jpegenc->cinfo, TRUE);
width2 = width>>1;
GST_DEBUG (0,"gst_jpegdec_chain: compressing");
GST_DEBUG ("gst_jpegdec_chain: compressing");
for (i = 0; i < height; i += 2*DCTSIZE) {
for (j=0, k=0; j<2*DCTSIZE;j+=2, k++) {
......@@ -293,7 +296,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");
GST_DEBUG ("gst_jpegdec_chain: compressing done");
GST_BUFFER_SIZE(outbuf) = (((outsize - jpegenc->jdest.free_in_buffer)+3)&~3);
......
......@@ -170,19 +170,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", i);
GST_DEBUG ("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", i);
GST_DEBUG ("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", i);
GST_DEBUG ("control port %d", i);
klass->control_portnums[controlcount++] = i;
}
}
......@@ -324,7 +324,7 @@ gst_ladspa_class_init (GstLADSPAClass *klass)
klass->control_info[i].param_name = argname;
GST_DEBUG (0, "adding arg %s from %s",argname, klass->control_info[i].name);
GST_DEBUG ("adding arg %s from %s",argname, klass->control_info[i].name);
if (argtype==G_TYPE_BOOLEAN){
paramspec = g_param_spec_boolean(argname,argname,argname, FALSE, argperms);
......@@ -443,7 +443,7 @@ gst_ladspa_init (GstLADSPA *ladspa)
if (sinkcount==0 && srccount == 1) {
/* get mode (no sink pads) */
GST_DEBUG (0, "mono get mode with 1 src pad");
GST_DEBUG ("mono get mode with 1 src pad");
ladspa->newcaps = TRUE;
......@@ -451,14 +451,14 @@ gst_ladspa_init (GstLADSPA *ladspa)
gst_pad_set_get_function (ladspa->srcpads[0], gst_ladspa_get);
} else if (sinkcount==1){
/* with one sink we can use the chain function */
GST_DEBUG (0