assorted debug/warning fixes
authorThomas Vander Stichele <thomas@apestaart.org>
Wed, 25 Feb 2004 17:45:54 +0000 (17:45 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Wed, 25 Feb 2004 17:45:54 +0000 (17:45 +0000)
Original commit message from CVS:
assorted debug/warning fixes

ChangeLog
gst/audioconvert/gstaudioconvert.c
gst/videoscale/gstvideoscale.c

index 3cb0593..9103b0e 100644 (file)
--- 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):
index b354f43..718cfd9 100644 (file)
@@ -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;
   }
index 3710380..9b9125b 100644 (file)
@@ -18,7 +18,6 @@
  */
 
 
-/*#define DEBUG_ENABLED */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif