summaryrefslogtreecommitdiff
path: root/ext/x264/gstencoderbitrateprofilemanager.c
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2021-03-19 15:16:06 +1100
committerTim-Philipp Müller <tim@centricular.com>2021-04-13 01:45:18 +0100
commit3d9799b41e5f1148f1dadd8ca9e568f1706b35cc (patch)
treec38753560f0c9f7a09bc4e30af51476ef8471855 /ext/x264/gstencoderbitrateprofilemanager.c
parent320793e554956095a01face9ef9e408281975698 (diff)
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-plugins-ugly/-/merge_requests/80>
Diffstat (limited to 'ext/x264/gstencoderbitrateprofilemanager.c')
-rw-r--r--ext/x264/gstencoderbitrateprofilemanager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/x264/gstencoderbitrateprofilemanager.c b/ext/x264/gstencoderbitrateprofilemanager.c
index ef99b0e2..5ef83eec 100644
--- a/ext/x264/gstencoderbitrateprofilemanager.c
+++ b/ext/x264/gstencoderbitrateprofilemanager.c
@@ -205,7 +205,7 @@ gst_encoder_bitrate_profile_manager_new (guint default_bitrate)
{
GstEncoderBitrateProfileManager *self =
g_new0 (GstEncoderBitrateProfileManager, 1);
- static volatile gsize _init = 0;
+ static gsize _init = 0;
if (g_once_init_enter (&_init)) {
GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "encoderbitratemanager", 0,