libs: audio: Fix gst_audio_buffer_truncate meta handling
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Mon, 15 Feb 2021 16:22:47 +0000 (17:22 +0100)
committerJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Mon, 15 Feb 2021 16:32:04 +0000 (17:32 +0100)
commit297a5f09b10159b47df03cf7438d89fe0f77ef5c
tree2afc8faf06fa0e6904f9ae9df354d40f243bdae6
parent319da90d4cfdae6a5a84198d76a295dc8c162627
libs: audio: Fix gst_audio_buffer_truncate meta handling

In the non-interleaved case, it made `buffer` writable but then changed
the meta of the non-writable buffer.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1035>
gst-libs/gst/audio/audio.c