mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
dcaparse: keep upstream buffer meta
Some audio decoders cannot decode DTS stream if there is no valid timestamp. So, keep upstream buffer meta. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5655>
This commit is contained in:
parent
7104c867c0
commit
8db184085a
1 changed files with 1 additions and 0 deletions
|
@ -505,6 +505,7 @@ gst_dca_parse_chain_priv (GstPad * pad, GstObject * parent, GstBuffer * buffer)
|
|||
size = gst_buffer_get_size (buffer);
|
||||
if (size >= 2) {
|
||||
newbuf = gst_buffer_copy_region (buffer, GST_BUFFER_COPY_ALL, 2, size - 2);
|
||||
gst_buffer_copy_into (newbuf, buffer, GST_BUFFER_COPY_METADATA, 0, -1);
|
||||
gst_buffer_unref (buffer);
|
||||
ret = dcaparse->baseparse_chainfunc (pad, parent, newbuf);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue