mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
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/78>
This commit is contained in:
parent
3aba7d1e62
commit
6399179d7a
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue