summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2021-06-26 12:50:58 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2021-06-26 12:50:58 -0400
commit0adc6ccc01ee9c97257ae5ada76027decf3fcf47 (patch)
treeb6b5ebbdb54088679f31852592fac3f6392919bf
parent8c04f4bdae1c9d7cdeaf17b2ac07f4148eb528dd (diff)
downloadgstreamer-plugins-base-0adc6ccc01ee9c97257ae5ada76027decf3fcf47.tar.gz
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 gst-plugins-good#868 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1219>
-rw-r--r--gst-libs/gst/gl/egl/gstglmemoryegl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/egl/gstglmemoryegl.c b/gst-libs/gst/gl/egl/gstglmemoryegl.c
index b4a308ee9..9ab3c075d 100644
--- a/gst-libs/gst/gl/egl/gstglmemoryegl.c
+++ b/gst-libs/gst/gl/egl/gstglmemoryegl.c
@@ -266,7 +266,7 @@ gst_gl_memory_egl_allocator_init (GstGLMemoryEGLAllocator * allocator)
void
gst_gl_memory_egl_init_once (void)
{
- static volatile gsize _init = 0;
+ static gsize _init = 0;
if (g_once_init_enter (&_init)) {
gst_gl_memory_init_once ();