videoflip: fix concurrent access when modifying the tag list
authorGuillaume Desmottes <guillaume.desmottes@onestream.live>
Tue, 25 Jul 2023 13:15:58 +0000 (15:15 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 25 Jul 2023 16:32:50 +0000 (17:32 +0100)
commitbbca6cc8c8125f53b74f7b9a5b7a559595f9cf89
treee26f49785fd2beca880e4256b105edc43eb007a0
parent1a3deef85fa0c32bb706b240a3a681afa34d1110
videoflip: fix concurrent access when modifying the tag list

We were checking if the tag list is writable, but it may actually be
shared through the same event (tee upstream or multiple consumers).

Fix a bug where multiple branches have a videoflip element checking the
taglist. The first one was changing the orientation back to rotate-0
which was resetting the other instances.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5099>
subprojects/gst-plugins-good/gst/videofilter/gstvideoflip.c