From 45a17154b7a365a3ebabfcdda6464b2f2d11ab6f Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 26 Jan 2009 17:15:15 +0200 Subject: [PATCH] Add logging in failure case. Add more details to a todo comment. --- libs/gst/base/gstbasesrc.c | 3 +++ libs/gst/base/gstbasetransform.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 4c3b4e7a27..850516dba3 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -265,6 +265,7 @@ gst_base_src_get_type (void) } return base_src_type; } + static GstCaps *gst_base_src_getcaps (GstPad * pad); static gboolean gst_base_src_setcaps (GstPad * pad, GstCaps * caps); static void gst_base_src_fixate (GstPad * pad, GstCaps * caps); @@ -2405,6 +2406,8 @@ gst_base_src_default_negotiate (GstBaseSrc * basesrc) } } gst_caps_unref (caps); + } else { + GST_DEBUG_OBJECT (basesrc, "no common caps"); } return result; diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index 2b0c42a015..fbcc435e9d 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -491,7 +491,10 @@ gst_base_transform_transform_caps (GstBaseTransform * trans, } GST_LOG_OBJECT (trans, "merged: (%d)", gst_caps_get_size (ret)); /* we can't do much simplification here because we don't really want to - * change the caps order */ + * change the caps order + gst_caps_do_simplify (ret); + GST_DEBUG_OBJECT (trans, "simplified: (%d)", gst_caps_get_size (ret)); + */ } } else { GST_DEBUG_OBJECT (trans, "identity from: %" GST_PTR_FORMAT, caps);