queue2: Hold the lock when modifying sinkresult
authorEdward Hervey <edward@centricular.com>
Mon, 3 Oct 2022 09:16:25 +0000 (11:16 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 3 Oct 2022 15:18:09 +0000 (15:18 +0000)
commitf08bdf1c4aa5fe8f0de278f061ea8f12285c0100
tree6bef4beed261679285a66fbf88214704ee5a0a2b
parentf2a17692365b14e354d65bfe7ffc99cbd63b3d13
queue2: Hold the lock when modifying sinkresult

As it's done elsewhere. Avoids a potential race of the field being modified in
the meantime.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3110>
subprojects/gstreamer/plugins/elements/gstqueue2.c