qmlglsrc: Unmap buffer before adding sync meta
authorJan Schmidt <jan@centricular.com>
Tue, 20 Dec 2022 15:32:41 +0000 (02:32 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 21 Dec 2022 12:21:32 +0000 (12:21 +0000)
commitd3c85b4d19f57c99d503ce9abf68f5d963dd454c
treeb9b3fc91e8bf0b121412140dfba6a4ee3d20d020
parent2b09f7a0062914e9ac04defe7f317566c4943109
qmlglsrc: Unmap buffer before adding sync meta

Adding a sync meta to a GstBuffer requires that it
be writable. Mapping the buffer with the video frame API
holds an extra ref on the buffer, so unmap before
trying to modify it.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3612>
subprojects/gst-plugins-good/ext/qt/qtwindow.cc