summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-02-25 17:45:54 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-02-25 17:45:54 +0000
commitd31fb663bd5e37cecbc03fd6f907a01ad35fcaec (patch)
tree6ce7a3d809343997cad20e893a3688be1b109a5e
parent5c204680fb51af67235b312d43c1153cd175c7c0 (diff)
downloadgstreamer-plugins-base-d31fb663bd5e37cecbc03fd6f907a01ad35fcaec.tar.gz
assorted debug/warning fixes
Original commit message from CVS: assorted debug/warning fixes
-rw-r--r--ChangeLog8
-rw-r--r--gst/audioconvert/gstaudioconvert.c13
-rw-r--r--gst/videoscale/gstvideoscale.c1
3 files changed, 16 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 3cb0593d5..9103b0e8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2004-02-25 Thomas Vander Stichele <thomas at apestaart dot org>
+ * 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 <thomas at apestaart dot org>
+
* 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 b354f4396..718cfd9cb 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 371038045..9b9125bcf 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