#else
fprintf(stderr,"INFO:%s%s %s\n",
location,elementname,string);
- #endif /* GST_DEBUG_COLOR */
-/*
+ #endif // GST_DEBUG_COLOR
+
#endif
*/
/***** DEBUG system *****/
GHashTable *__gst_function_pointers = NULL;
/* FIXME make this thread specific */
-static GSList *stack_trace = NULL;
+/* static GSList *stack_trace = NULL; */
gchar *_gst_debug_nameof_funcptr (void *ptr) __attribute__ ((no_instrument_function));
return GST_PAD_CONNECT_REFUSED;
}
}
- /* we can only set caps on the pad if they are ficed */
+ /* we can only set caps on the pad if they are fixed */
if (GST_CAPS_IS_FIXED (caps)) {
GST_INFO (GST_CAT_CAPS, "setting caps on pad %s:%s",
/* setting non fixed caps on a pad is not allowed */
if (!GST_CAPS_IS_FIXED (caps)) {
- g_warning ("trying to set non fixed caps on pad %s:%s",
+ GST_INFO (GST_CAT_CAPS, "trying to set unfixed caps on pad %s:%s, not allowed",
+ GST_DEBUG_PAD_NAME (realpad));
+ g_warning ("trying to set non fixed caps on pad %s:%s, not allowed",
GST_DEBUG_PAD_NAME (realpad));
gst_caps_debug (caps);
return FALSE;
/* if we have a peer try to set the caps, notifying the peerpad
* if it has a connect function */
if (peer && !gst_pad_try_set_caps_func (peer, caps, TRUE))
+ {
+ GST_INFO (GST_CAT_CAPS, "tried to set caps on peerpad %s:%s but couldn't",
+ GST_DEBUG_PAD_NAME (peer));
return FALSE;
+ }
/* then try to set our own caps, we don't need to be notified */
if (!gst_pad_try_set_caps_func (realpad, caps, FALSE))
+ {
+ GST_INFO (GST_CAT_CAPS, "tried to set own caps on pad %s:%s but couldn't",
+ GST_DEBUG_PAD_NAME (realpad));
return FALSE;
-
+ }
+ GST_INFO (GST_CAT_CAPS, "succeeded setting caps %p on pad %s:%s",
+ caps, GST_DEBUG_PAD_NAME (realpad));
+ gst_caps_debug (caps);
+
return TRUE;
}