Skip to content

audiobuffersplit: Unset DISCONT flag if not discontinuous

And also set/unset the RESYNC flag accordingly.

It can happen that the flag is preserved by GstAdapter from the input buffer. For example if a big input buffer is split into many small ones, each of the small ones would have the flag set.

All other buffer flags seem safe to keep here if they were set, including the GAP flag.

Also ensure that the buffer is actually writable before changing any flags or metadata on it.

Edited by Tim-Philipp Müller

Merge request reports