}
if (bclass->prepare_output_buffer) {
- if (outcaps == NULL)
- outcaps = gst_pad_get_current_caps (trans->srcpad);
-
- GST_DEBUG_OBJECT (trans,
- "calling prepare buffer with caps %p %" GST_PTR_FORMAT, outcaps,
- outcaps);
- ret =
- bclass->prepare_output_buffer (trans, in_buf, outsize, outcaps,
- out_buf);
-
- /* get a new ref to the srcpad caps, the prepare_output_buffer function can
- * update the pad caps if it wants */
- if (outcaps)
- gst_caps_unref (outcaps);
- outcaps = gst_pad_get_current_caps (trans->srcpad);
+ GST_DEBUG_OBJECT (trans, "calling prepare buffer");
+ ret = bclass->prepare_output_buffer (trans, in_buf, out_buf);
/* FIXME 0.11:
* decrease refcount again if vmethod returned refcounted in_buf. This
gboolean (*src_event) (GstBaseTransform *trans, GstEvent *event);
GstFlowReturn (*prepare_output_buffer) (GstBaseTransform * trans,
- GstBuffer *input, gint size, GstCaps *caps, GstBuffer **buf);
+ GstBuffer *input, GstBuffer **buf);
void (*before_transform) (GstBaseTransform *trans, GstBuffer *buffer);
static GstFlowReturn gst_capsfilter_transform_ip (GstBaseTransform * base,
GstBuffer * buf);
static GstFlowReturn gst_capsfilter_prepare_buf (GstBaseTransform * trans,
- GstBuffer * input, gint size, GstCaps * caps, GstBuffer ** buf);
+ GstBuffer * input, GstBuffer ** buf);
static void
gst_capsfilter_class_init (GstCapsFilterClass * klass)
*/
static GstFlowReturn
gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
- gint size, GstCaps * caps, GstBuffer ** buf)
+ GstBuffer ** buf)
{
GstFlowReturn ret = GST_FLOW_OK;
static GstFlowReturn gst_identity_transform_ip (GstBaseTransform * trans,
GstBuffer * buf);
static GstFlowReturn gst_identity_prepare_output_buffer (GstBaseTransform
- * trans, GstBuffer * in_buf, gint out_size, GstCaps * out_caps,
- GstBuffer ** out_buf);
+ * trans, GstBuffer * in_buf, GstBuffer ** out_buf);
static gboolean gst_identity_start (GstBaseTransform * trans);
static gboolean gst_identity_stop (GstBaseTransform * trans);
static GstFlowReturn
gst_identity_prepare_output_buffer (GstBaseTransform * trans,
- GstBuffer * in_buf, gint out_size, GstCaps * out_caps, GstBuffer ** out_buf)
+ GstBuffer * in_buf, GstBuffer ** out_buf)
{
GstIdentity *identity = GST_IDENTITY (trans);