From: Thomas Vander Stichele Date: Thu, 1 Apr 2004 13:20:52 +0000 (+0000) Subject: some more debuggin X-Git-Tag: RELEASE-0_8_1~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=456bfef89dfaacfeade2f4ff01c69bddc8b2ebbc;p=platform%2Fupstream%2Fgstreamer.git some more debuggin Original commit message from CVS: some more debuggin --- diff --git a/gst/gstpad.c b/gst/gstpad.c index ee88b71..aa95c8e 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -2703,11 +2703,13 @@ gst_pad_get_allowed_caps (GstPad * pad) g_return_val_if_fail (GST_IS_REAL_PAD (pad), NULL); - GST_CAT_DEBUG (GST_CAT_PROPERTIES, "get allowed caps of %s:%s", + GST_CAT_DEBUG (GST_CAT_PROPERTIES, "%s:%s: getting allowed caps", GST_DEBUG_PAD_NAME (pad)); mycaps = gst_pad_get_pad_template_caps (pad); if (GST_RPAD_PEER (pad) == NULL) { + GST_CAT_DEBUG (GST_CAT_PROPERTIES, "%s:%s: no peer, returning template", + GST_DEBUG_PAD_NAME (pad)); return gst_caps_copy (mycaps); } @@ -2719,8 +2721,14 @@ gst_pad_get_allowed_caps (GstPad * pad) if (link->filtercaps) { icaps = gst_caps_intersect (caps, link->filtercaps); gst_caps_free (caps); + GST_CAT_DEBUG (GST_CAT_PROPERTIES, + "%s:%s: returning filtered intersection with peer", + GST_DEBUG_PAD_NAME (pad)); return icaps; } else { + GST_CAT_DEBUG (GST_CAT_PROPERTIES, + "%s:%s: returning unfiltered intersection with peer", + GST_DEBUG_PAD_NAME (pad)); return caps; } }