+2005-07-28 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
+
+ * gst/base/gstbasetransform.c: (gst_base_transform_setcaps):
+ Better debug if no transform is possible.
+
2005-07-27 Wim Taymans <wim@fluendo.com>
* docs/random/wtay/network-transp:
return ret;
}
+#include <string.h>
static gboolean
gst_base_transform_setcaps (GstPad * pad, GstCaps * caps)
{
/* see how we can transform the input caps */
othercaps = gst_base_transform_transform_caps (trans, pad, caps);
-
+ if (!strcmp (GST_OBJECT_NAME (trans), "vconv")) {
+ g_print ("%s transforms into %s\n",
+ gst_caps_to_string (caps), gst_caps_to_string (othercaps));
+ }
/* check if transform is empty */
if (!othercaps || gst_caps_is_empty (othercaps))
goto no_transform;
peercaps = gst_pad_get_caps (otherpeer);
intersect = gst_caps_intersect (peercaps, othercaps);
+ if (!strcmp (GST_OBJECT_NAME (trans), "vconv")) {
+ g_print ("%s -> %s = %s\n",
+ gst_caps_to_string (peercaps),
+ gst_caps_to_string (othercaps), gst_caps_to_string (intersect));
+ }
gst_caps_unref (peercaps);
gst_caps_unref (othercaps);
othercaps = intersect;
"filtering against peer yields %" GST_PTR_FORMAT, othercaps);
}
+ if (gst_caps_is_empty (othercaps))
+ goto no_transform_possible;
+
if (!gst_caps_is_fixed (othercaps)) {
GstCaps *temp;
ret = FALSE;
goto done;
}
+no_transform_possible:
+ {
+ GST_DEBUG_OBJECT (trans,
+ "transform could not transform %" GST_PTR_FORMAT
+ " in anything we support", caps);
+ ret = FALSE;
+ goto done;
+ }
could_not_fixate:
{
GST_DEBUG_OBJECT (trans, "FAILED to fixate %" GST_PTR_FORMAT, othercaps);
return ret;
}
+#include <string.h>
static gboolean
gst_base_transform_setcaps (GstPad * pad, GstCaps * caps)
{
/* see how we can transform the input caps */
othercaps = gst_base_transform_transform_caps (trans, pad, caps);
-
+ if (!strcmp (GST_OBJECT_NAME (trans), "vconv")) {
+ g_print ("%s transforms into %s\n",
+ gst_caps_to_string (caps), gst_caps_to_string (othercaps));
+ }
/* check if transform is empty */
if (!othercaps || gst_caps_is_empty (othercaps))
goto no_transform;
peercaps = gst_pad_get_caps (otherpeer);
intersect = gst_caps_intersect (peercaps, othercaps);
+ if (!strcmp (GST_OBJECT_NAME (trans), "vconv")) {
+ g_print ("%s -> %s = %s\n",
+ gst_caps_to_string (peercaps),
+ gst_caps_to_string (othercaps), gst_caps_to_string (intersect));
+ }
gst_caps_unref (peercaps);
gst_caps_unref (othercaps);
othercaps = intersect;
"filtering against peer yields %" GST_PTR_FORMAT, othercaps);
}
+ if (gst_caps_is_empty (othercaps))
+ goto no_transform_possible;
+
if (!gst_caps_is_fixed (othercaps)) {
GstCaps *temp;
ret = FALSE;
goto done;
}
+no_transform_possible:
+ {
+ GST_DEBUG_OBJECT (trans,
+ "transform could not transform %" GST_PTR_FORMAT
+ " in anything we support", caps);
+ ret = FALSE;
+ goto done;
+ }
could_not_fixate:
{
GST_DEBUG_OBJECT (trans, "FAILED to fixate %" GST_PTR_FORMAT, othercaps);