diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/faac/gstfaac.c | 9 | ||||
-rw-r--r-- | ext/faad/gstfaad.c | 4 | ||||
-rw-r--r-- | ext/hermes/gsthermescolorspace.c | 3 | ||||
-rw-r--r-- | ext/lcs/gstcolorspace.c | 4 | ||||
-rw-r--r-- | ext/xine/xineinput.c | 2 |
5 files changed, 14 insertions, 8 deletions
diff --git a/ext/faac/gstfaac.c b/ext/faac/gstfaac.c index f89ad751..efae2462 100644 --- a/ext/faac/gstfaac.c +++ b/ext/faac/gstfaac.c @@ -434,9 +434,9 @@ gst_faac_sink_event (GstPad * pad, GstEvent * event) /* flush first */ ret = TRUE; do { - if (gst_pad_alloc_buffer (faac->srcpad, GST_BUFFER_OFFSET_NONE, - faac->bytes, GST_PAD_CAPS (faac->srcpad), - &outbuf) == GST_FLOW_OK) { + if (gst_pad_alloc_buffer_and_set_caps (faac->srcpad, + GST_BUFFER_OFFSET_NONE, faac->bytes, + GST_PAD_CAPS (faac->srcpad), &outbuf) == GST_FLOW_OK) { gint ret_size; if ((ret_size = faacEncEncode (faac->handle, NULL, 0, @@ -556,7 +556,8 @@ gst_faac_chain (GstPad * pad, GstBuffer * inbuf) (size - in_size) / size); } - result = gst_pad_alloc_buffer (faac->srcpad, GST_BUFFER_OFFSET_NONE, + result = + gst_pad_alloc_buffer_and_set_caps (faac->srcpad, GST_BUFFER_OFFSET_NONE, faac->bytes, GST_PAD_CAPS (faac->srcpad), &outbuf); if (result != GST_FLOW_OK) goto done; diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c index 6057469c..299e7d19 100644 --- a/ext/faad/gstfaad.c +++ b/ext/faad/gstfaad.c @@ -867,7 +867,9 @@ gst_faad_chain (GstPad * pad, GstBuffer * buffer) guint num_samples = info.samples / faad->channels; /* note: info.samples is total samples, not per channel */ - ret = gst_pad_alloc_buffer (faad->srcpad, 0, bufsize, caps, &outbuf); + ret = + gst_pad_alloc_buffer_and_set_caps (faad->srcpad, 0, bufsize, caps, + &outbuf); if (ret != GST_FLOW_OK) goto out; diff --git a/ext/hermes/gsthermescolorspace.c b/ext/hermes/gsthermescolorspace.c index 85de2e4b..36d32f19 100644 --- a/ext/hermes/gsthermescolorspace.c +++ b/ext/hermes/gsthermescolorspace.c @@ -580,7 +580,8 @@ gst_hermes_colorspace_chain (GstPad * pad, GstData * _data) g_critical ("input size is smaller than expected"); } - outbuf = gst_pad_alloc_buffer (space->srcpad, GST_BUFFER_OFFSET_NONE, + outbuf = + gst_pad_alloc_buffer_and_set_caps (space->srcpad, GST_BUFFER_OFFSET_NONE, space->src_size); Hermes_ConverterCopy (space->h_handle, diff --git a/ext/lcs/gstcolorspace.c b/ext/lcs/gstcolorspace.c index ab1167a4..5e688b7b 100644 --- a/ext/lcs/gstcolorspace.c +++ b/ext/lcs/gstcolorspace.c @@ -411,7 +411,9 @@ gst_colorspace_chain (GstPad * pad, GstData * _data) lcs_format_buffer_size (lcs_converter_get_dest_format (space->converter), space->width, space->height, &size); - outbuf = gst_pad_alloc_buffer (space->srcpad, GST_BUFFER_OFFSET_NONE, size); + outbuf = + gst_pad_alloc_buffer_and_set_caps (space->srcpad, + GST_BUFFER_OFFSET_NONE, size); lcs_convert_auto (space->converter, GST_BUFFER_DATA (buf), diff --git a/ext/xine/xineinput.c b/ext/xine/xineinput.c index bdc84195..fb4813ac 100644 --- a/ext/xine/xineinput.c +++ b/ext/xine/xineinput.c @@ -168,7 +168,7 @@ gst_xine_input_get (GstPad * pad) } buf = - gst_pad_alloc_buffer (xine->srcpad, GST_BUFFER_OFFSET_NONE, + gst_pad_alloc_buffer_and_set_caps (xine->srcpad, GST_BUFFER_OFFSET_NONE, xine->blocksize); GST_BUFFER_OFFSET (buf) = position; real_size = |