h264/h265parse: Add VideoTimeCodeMeta to the outgoing buffer

Merged Jan Alexander Steffens requested to merge heftig/gst-plugins-bad:h26xparse-vtcm into master

The parsers attempted to add the meta to the incoming buffer, which might not be the outgoing buffer or may not have been writable yet.

To fix this, call gst_buffer_make_writable earlier and make sure to use the parse_buffer to add the meta.

Fixes #1521 (closed)

Merge request reports