summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0f3d1be)
raw | patch | inline | side by side (parent: 0f3d1be)
author | Andy Wingo <wingo@pobox.com> | |
Mon, 5 Dec 2005 13:03:40 +0000 (13:03 +0000) | ||
committer | Andy Wingo <wingo@pobox.com> | |
Mon, 5 Dec 2005 13:03:40 +0000 (13:03 +0000) |
Original commit message from CVS:
2005-12-05 Andy Wingo <wingo@pobox.com>
* ext/a52dec/gsta52dec.c: (gst_a52dec_push):
* ext/mad/gstmad.c: (gst_mad_chain):
* ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_alloc_buffer):
* gst/dvdlpcmdec/gstdvdlpcmdec.c: (gst_dvdlpcmdec_chain_raw):
* gst/iec958/ac3iec.c: (ac3iec_chain_raw):
* gst/realmedia/rmdemux.c: (gst_rmdemux_add_stream),
(gst_rmdemux_parse_packet): Update for alloc_buffer changes.
2005-12-05 Andy Wingo <wingo@pobox.com>
* ext/a52dec/gsta52dec.c: (gst_a52dec_push):
* ext/mad/gstmad.c: (gst_mad_chain):
* ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_alloc_buffer):
* gst/dvdlpcmdec/gstdvdlpcmdec.c: (gst_dvdlpcmdec_chain_raw):
* gst/iec958/ac3iec.c: (ac3iec_chain_raw):
* gst/realmedia/rmdemux.c: (gst_rmdemux_add_stream),
(gst_rmdemux_parse_packet): Update for alloc_buffer changes.
diff --git a/ChangeLog b/ChangeLog
index 3b1687a0b2dcd06a1cc3a5196f60f8861ce3bd0b..748bfe550ad8b6f7bf8fde9ad6ff9a6c27807e59 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2005-12-05 Andy Wingo <wingo@pobox.com>
+
+ * ext/a52dec/gsta52dec.c: (gst_a52dec_push):
+ * ext/mad/gstmad.c: (gst_mad_chain):
+ * ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_alloc_buffer):
+ * gst/dvdlpcmdec/gstdvdlpcmdec.c: (gst_dvdlpcmdec_chain_raw):
+ * gst/iec958/ac3iec.c: (ac3iec_chain_raw):
+ * gst/realmedia/rmdemux.c: (gst_rmdemux_add_stream),
+ (gst_rmdemux_parse_packet): Update for alloc_buffer changes.
+
2005-12-05 Andy Wingo <wingo@pobox.com>
* ext/mad/gstid3tag.c (plugin_init): Remove id3tag -- there's just
diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c
index 723d957d9a975820d3048195e67de8d343c3ec4a..2785a85de96d63a67de4491cba5672240a07b043 100644 (file)
--- a/ext/a52dec/gsta52dec.c
+++ b/ext/a52dec/gsta52dec.c
return GST_FLOW_ERROR;
}
- result = gst_pad_alloc_buffer (srcpad, 0, 256 * chans * (SAMPLE_WIDTH / 8),
- GST_PAD_CAPS (srcpad), &buf);
+ result =
+ gst_pad_alloc_buffer_and_set_caps (srcpad, 0,
+ 256 * chans * (SAMPLE_WIDTH / 8), GST_PAD_CAPS (srcpad), &buf);
if (result != GST_FLOW_OK)
return result;
diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c
index 77e92717d34d300a4f150f0bbebbbcbb85633e58..5b4e0eed1de2bb4e2416092a8f69f9ceef4e2d3d 100644 (file)
--- a/ext/mad/gstmad.c
+++ b/ext/mad/gstmad.c
/* will attach the caps to the buffer */
result =
- gst_pad_alloc_buffer (mad->srcpad, 0, nsamples * mad->channels * 2,
- GST_PAD_CAPS (mad->srcpad), &outbuffer);
+ gst_pad_alloc_buffer_and_set_caps (mad->srcpad, 0,
+ nsamples * mad->channels * 2, GST_PAD_CAPS (mad->srcpad),
+ &outbuffer);
if (result != GST_FLOW_OK) {
/* Head for the exit, dropping samples as we go */
GST_LOG ("Skipping frame synthesis due to pad_alloc return value");
index fc23793ad0406d04d9b480db63599d4bf80319ff..be5ddbf1d00f71047198752f456ee2a23e94f5e3 100644 (file)
if (mpeg2dec->format == MPEG2DEC_FORMAT_I422) {
ret =
- gst_pad_alloc_buffer (mpeg2dec->srcpad, GST_BUFFER_OFFSET_NONE,
- size * 2, GST_PAD_CAPS (mpeg2dec->srcpad), &outbuf);
+ gst_pad_alloc_buffer_and_set_caps (mpeg2dec->srcpad,
+ GST_BUFFER_OFFSET_NONE, size * 2, GST_PAD_CAPS (mpeg2dec->srcpad),
+ &outbuf);
if (ret != GST_FLOW_OK)
goto no_buffer;
} else {
ret =
- gst_pad_alloc_buffer (mpeg2dec->srcpad, GST_BUFFER_OFFSET_NONE,
- (size * 3) / 2, GST_PAD_CAPS (mpeg2dec->srcpad), &outbuf);
+ gst_pad_alloc_buffer_and_set_caps (mpeg2dec->srcpad,
+ GST_BUFFER_OFFSET_NONE, (size * 3) / 2, GST_PAD_CAPS (mpeg2dec->srcpad),
+ &outbuf);
if (ret != GST_FLOW_OK)
goto no_buffer;
done:
if (ret != GST_FLOW_OK) {
outbuf = NULL; /* just to asure NULL return, looking the path
- above it happens only when gst_pad_alloc_buffer
+ above it happens only when gst_pad_alloc_buffer_and_set_caps
fails to alloc outbf */
}
*obuf = outbuf;
index 38293cf036a4303ceeb81935bdc73765b23ac799..cbe342123a754e72e0b5da636ce6f0b3dc6e9497 100644 (file)
GstBuffer *outbuf;
GstCaps *bufcaps = GST_PAD_CAPS (dvdlpcmdec->srcpad);
- ret = gst_pad_alloc_buffer (dvdlpcmdec->srcpad, 0,
+ ret = gst_pad_alloc_buffer_and_set_caps (dvdlpcmdec->srcpad, 0,
samples * 3, bufcaps, &outbuf);
if (ret != GST_FLOW_OK)
diff --git a/gst/iec958/ac3iec.c b/gst/iec958/ac3iec.c
index 0c6e543342ed3450ba886a28514d40cec407d552..7b9a3a5281b7125e3665e4b02e4eb7f0826370fe 100644 (file)
--- a/gst/iec958/ac3iec.c
+++ b/gst/iec958/ac3iec.c
GstCaps *bufcaps = GST_PAD_CAPS (ac3iec->src);
/* Create a new buffer, and copy the frame data into it. */
- ret = gst_pad_alloc_buffer (ac3iec->src, 0, AC3P_IEC_FRAME_SIZE,
- bufcaps, &new);
+ ret =
+ gst_pad_alloc_buffer_and_set_caps (ac3iec->src, 0,
+ AC3P_IEC_FRAME_SIZE, bufcaps, &new);
if (ret != GST_FLOW_OK)
goto buffer_alloc_failed;
index e94ac90b07c9c91e0139ecb80a44400fd5b5b0bb..8bda324c36d4b9f77f2aa3ac5d00315a1a4b3a72 100644 (file)
--- a/gst/realmedia/rmdemux.c
+++ b/gst/realmedia/rmdemux.c
if (stream->extra_data_size > 0) {
GstBuffer *buffer;
- if ((ret = gst_pad_alloc_buffer
+ if ((ret = gst_pad_alloc_buffer_and_set_caps
(stream->pad, GST_BUFFER_OFFSET_NONE, stream->extra_data_size,
stream->caps, &buffer))
!= GST_FLOW_OK) {
if ((rmdemux->offset + packet_size) > stream->seek_offset &&
stream && stream->pad) {
- if ((ret = gst_pad_alloc_buffer (stream->pad, GST_BUFFER_OFFSET_NONE,
- packet_size, stream->caps, &buffer)) != GST_FLOW_OK) {
+ if ((ret =
+ gst_pad_alloc_buffer_and_set_caps (stream->pad,
+ GST_BUFFER_OFFSET_NONE, packet_size, stream->caps,
+ &buffer)) != GST_FLOW_OK) {
GST_WARNING_OBJECT (rmdemux, "failed to alloc src buffer for stream %d",
id);
return ret;