gst: don't use volatile to mean atomic
authorMatthew Waters <matthew@centricular.com>
Fri, 19 Mar 2021 06:21:01 +0000 (17:21 +1100)
committerMatthew Waters <matthew@centricular.com>
Fri, 19 Mar 2021 06:21:22 +0000 (17:21 +1100)
commit083ae2b8ed658ff579de7eedea7fd728c1e49457
tree1ffc70d23c54dce6a490aa3d50819409753e07d3
parentedf58d30e62d26b6433bd3c9c2ecbf6e690bdb68
gst: don't use volatile to mean atomic

volatile is not sufficient to provide atomic guarantees and real atomics
should be used instead.  GCC 11 has started warning about using volatile
with atomic operations.

https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719

Discovered in https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/868

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/234>
ges/ges-smart-video-mixer.c
ges/gstframepositioner.c
plugins/nle/nlecomposition.c
plugins/nle/nleobject.c