Make the "could not find compatible pad' message more informative
authorJan Schmidt <thaytan@mad.scientist.com>
Tue, 6 Jan 2004 16:28:43 +0000 (16:28 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Tue, 6 Jan 2004 16:28:43 +0000 (16:28 +0000)
Original commit message from CVS:
Make the "could not find compatible pad' message more informative

ChangeLog
gst/gstelement.c

index e415f7f..4dd9d43 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-07  Jan Schmidt  <thaytan@mad.scientist.com>
+
+       * gst/gstelement.c: (gst_element_get_compatible_pad_filtered):
+       Make the 'Could not find compatible pad' message more informative.
+
 2004-01-06  Jan Schmidt  <thaytan@mad.scientist.com>
 
        * gst/gstcaps.c: (gst_caps_append_structure):
index feaab2c..1f31996 100644 (file)
@@ -1496,7 +1496,8 @@ gst_element_get_compatible_pad_filtered (GstElement *element, GstPad *pad,
     if (foundpad) return foundpad;
   //}
   
-  g_critical("could not find a compatible pad");
+  g_critical("Could not find a compatible pad on element %s to link to %s:%s",
+             GST_ELEMENT_NAME (element), GST_DEBUG_PAD_NAME (pad));
 
   return NULL;
 }