From: Thomas Vander Stichele Date: Wed, 25 Feb 2004 17:45:54 +0000 (+0000) Subject: assorted debug/warning fixes X-Git-Tag: 1.19.3~511^2~14603 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d31fb663bd5e37cecbc03fd6f907a01ad35fcaec;p=platform%2Fupstream%2Fgstreamer.git assorted debug/warning fixes Original commit message from CVS: assorted debug/warning fixes --- diff --git a/ChangeLog b/ChangeLog index 3cb0593..9103b0e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2004-02-25 Thomas Vander Stichele + * gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_link), + (gst_audio_convert_change_state), (gst_audio_convert_get_buffer): + * gst/videoscale/gstvideoscale.c: + * sys/oss/gstosselement.c: (gst_osselement_sync_parms): + assorted debug/warning fixes + +2004-02-25 Thomas Vander Stichele + * gst/videoscale/gstvideoscale.c: (gst_videoscale_getcaps), (gst_videoscale_init), (gst_videoscale_chain), (gst_videoscale_set_property), (plugin_init): diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index b354f43..718cfd9 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -535,7 +535,10 @@ gst_audio_convert_link (GstPad *pad, const GstCaps *caps) this->srccaps = ac_caps; this->sinkcaps = other_ac_caps; } - + g_print ("negotiated sink to %" GST_PTR_FORMAT, this->sinkcaps); + + GST_DEBUG ("negotiated sink to %" GST_PTR_FORMAT, this->sinkcaps); + GST_DEBUG ("negotiated src to %" GST_PTR_FORMAT, this->srccaps); return GST_PAD_LINK_OK; } @@ -547,7 +550,7 @@ gst_audio_convert_change_state (GstElement *element) switch (GST_STATE_TRANSITION (element)) { case GST_STATE_PAUSED_TO_READY: this->convert_internal = NULL; - GST_DEBUG ("resetting chain function to the default"); + GST_DEBUG_OBJECT (element, "resetting chain function to the default"); gst_pad_set_chain_function (this->sink, gst_audio_convert_chain); break; default: @@ -568,19 +571,19 @@ static GstBuffer* gst_audio_convert_get_buffer (GstBuffer *buf, guint size) { GstBuffer *ret; - GST_LOG ("new buffer of size %u requested. Current is: data: %p - size: %u - maxsize: %u\n", + GST_LOG ("new buffer of size %u requested. Current is: data: %p - size: %u - maxsize: %u", size, buf->data, buf->size, buf->maxsize); if (buf->maxsize >= size && gst_buffer_is_writable (buf)) { gst_buffer_ref (buf); buf->size = size; - GST_LOG ("returning same buffer with adjusted values. data: %p - size: %u - maxsize: %u\n", + GST_LOG ("returning same buffer with adjusted values. data: %p - size: %u - maxsize: %u", buf->data, buf->size, buf->maxsize); return buf; } else { ret = gst_buffer_new_and_alloc (size); g_assert (ret); gst_buffer_stamp (ret, buf); - GST_LOG ("returning new buffer. data: %p - size: %u - maxsize: %u\n", + GST_LOG ("returning new buffer. data: %p - size: %u - maxsize: %u", ret->data, ret->size, ret->maxsize); return ret; } diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 3710380..9b9125b 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -18,7 +18,6 @@ */ -/*#define DEBUG_ENABLED */ #ifdef HAVE_CONFIG_H #include "config.h" #endif