mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
gst/mxf/mxfup.c: Don't create a subbuffer, instead just change the buffer metadata of the input buffer.
Original commit message from CVS: * gst/mxf/mxfup.c: (mxf_up_handle_essence_element): Don't create a subbuffer, instead just change the buffer metadata of the input buffer.
This commit is contained in:
parent
332e5ec000
commit
d7a23866d2
2 changed files with 10 additions and 8 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-12-08 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
|
* gst/mxf/mxfup.c: (mxf_up_handle_essence_element):
|
||||||
|
Don't create a subbuffer, instead just change the buffer metadata
|
||||||
|
of the input buffer.
|
||||||
|
|
||||||
2008-12-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
2008-12-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||||
|
|
||||||
* gst/mxf/mxfdemux.c: (gst_mxf_demux_pad_finalize),
|
* gst/mxf/mxfdemux.c: (gst_mxf_demux_pad_finalize),
|
||||||
|
|
|
@ -94,14 +94,10 @@ mxf_up_handle_essence_element (const MXFUL * key, GstBuffer * buffer,
|
||||||
GST_ERROR ("Invalid buffer size");
|
GST_ERROR ("Invalid buffer size");
|
||||||
return GST_FLOW_ERROR;
|
return GST_FLOW_ERROR;
|
||||||
} else {
|
} else {
|
||||||
*outbuf =
|
GST_BUFFER_DATA (buffer) += data->image_start_offset;
|
||||||
gst_buffer_create_sub (buffer, data->image_start_offset,
|
GST_BUFFER_SIZE (buffer) -= data->image_start_offset;
|
||||||
GST_BUFFER_SIZE (buffer) - data->image_end_offset -
|
GST_BUFFER_SIZE (buffer) -= data->image_end_offset;
|
||||||
data->image_start_offset);
|
*outbuf = buffer;
|
||||||
gst_buffer_copy_metadata (*outbuf, buffer,
|
|
||||||
GST_BUFFER_COPY_FLAGS | GST_BUFFER_COPY_TIMESTAMPS |
|
|
||||||
GST_BUFFER_COPY_CAPS);
|
|
||||||
gst_buffer_unref (buffer);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue