pool: debug the config
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 2 Jun 2011 16:13:10 +0000 (18:13 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 2 Jun 2011 16:13:10 +0000 (18:13 +0200)
gst/gstbufferpool.c

index 067551c..58f2a4f 100644 (file)
@@ -372,6 +372,8 @@ default_set_config (GstBufferPool * pool, GstStructure * config)
           &max_buffers, &prefix, &postfix, &align))
     goto wrong_config;
 
+  GST_DEBUG_OBJECT (pool, "config %" GST_PTR_FORMAT, config);
+
   priv->size = size;
   priv->min_buffers = min_buffers;
   priv->max_buffers = max_buffers;
@@ -383,7 +385,7 @@ default_set_config (GstBufferPool * pool, GstStructure * config)
 
 wrong_config:
   {
-    GST_WARNING_OBJECT (pool, "invalid config");
+    GST_WARNING_OBJECT (pool, "invalid config %" GST_PTR_FORMAT, config);
     return FALSE;
   }
 }