+2005-05-06 Wim Taymans <wim@fluendo.com>
+
+ * gst/gstpad.c: (gst_pad_alloc_buffer), (gst_pad_push):
+ Also set caps if we use the fallback buffer alloc.
+
2005-05-06 Tim-Philipp Müller <tim at centricular dot net>
* docs/gst/Makefile.am:
goto fallback;
}
+do_caps:
/* FIXME, move capnego this into a base class? */
caps = GST_BUFFER_CAPS (result);
caps_changed = caps && caps != GST_RPAD_CAPS (pad);
/* fallback case, allocate a buffer of our own, add pad caps. */
fallback:
{
+ GST_CAT_DEBUG (GST_CAT_PADS,
+ "%s:%s fallback buffer alloc", GST_DEBUG_PAD_NAME (pad));
result = gst_buffer_new_and_alloc (size);
gst_buffer_set_caps (result, caps);
- return result;
+ goto do_caps;
}
not_negotiated:
{
/* FIXME, move capnego this into a base class? */
caps = GST_BUFFER_CAPS (buffer);
caps_changed = caps && caps != GST_RPAD_CAPS (peer);
+ GST_DEBUG ("caps changed %d %" GST_PTR_FORMAT "\n", caps_changed, caps);
/* we got a new datatype on the peer pad, see if it can handle it */
if (G_UNLIKELY (caps_changed)) {
if (G_UNLIKELY (!gst_pad_configure_sink (GST_PAD_CAST (peer), caps)))