summaryrefslogtreecommitdiff
path: root/ext/vpx/gstvpxenc.c
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2021-03-18 19:52:53 +1100
committerOlivier CrĂȘte <olivier.crete@collabora.com>2021-06-17 15:58:03 -0400
commit954af37bc9a31db13e7b2206c3a976177cf6c7b4 (patch)
treedfdaa0e8b6f3fac9901694a05f736d31f72687c7 /ext/vpx/gstvpxenc.c
parent9efd93e20dd7789e4172ad6c8f4108271b3fb1ee (diff)
downloadgstreamer-plugins-good-1.16.tar.gz
gst: don't use volatile to mean atomic1.16
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-good/-/merge_requests/1012>
Diffstat (limited to 'ext/vpx/gstvpxenc.c')
-rw-r--r--ext/vpx/gstvpxenc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/vpx/gstvpxenc.c b/ext/vpx/gstvpxenc.c
index 4aa1bf047..95fcbb499 100644
--- a/ext/vpx/gstvpxenc.c
+++ b/ext/vpx/gstvpxenc.c
@@ -162,7 +162,7 @@ gst_vpx_enc_end_usage_get_type (void)
{VPX_CQ, "Constant Quality Mode (CQ) mode", "cq"},
{0, NULL, NULL}
};
- static volatile GType id = 0;
+ static GType id = 0;
if (g_once_init_enter ((gsize *) & id)) {
GType _id;
@@ -185,7 +185,7 @@ gst_vpx_enc_multipass_mode_get_type (void)
{VPX_RC_LAST_PASS, "Last pass of multipass encoding", "last-pass"},
{0, NULL, NULL}
};
- static volatile GType id = 0;
+ static GType id = 0;
if (g_once_init_enter ((gsize *) & id)) {
GType _id;
@@ -207,7 +207,7 @@ gst_vpx_enc_kf_mode_get_type (void)
{VPX_KF_DISABLED, "Don't automatically place keyframes", "disabled"},
{0, NULL, NULL}
};
- static volatile GType id = 0;
+ static GType id = 0;
if (g_once_init_enter ((gsize *) & id)) {
GType _id;
@@ -229,7 +229,7 @@ gst_vpx_enc_tuning_get_type (void)
{VP8_TUNE_SSIM, "Tune for SSIM", "ssim"},
{0, NULL, NULL}
};
- static volatile GType id = 0;
+ static GType id = 0;
if (g_once_init_enter ((gsize *) & id)) {
GType _id;
@@ -253,7 +253,7 @@ gst_vpx_enc_scaling_mode_get_type (void)
{VP8E_ONETWO, "1:2", "1:2"},
{0, NULL, NULL}
};
- static volatile GType id = 0;
+ static GType id = 0;
if (g_once_init_enter ((gsize *) & id)) {
GType _id;
@@ -277,7 +277,7 @@ gst_vpx_enc_token_partitions_get_type (void)
{VP8_EIGHT_TOKENPARTITION, "Eight token partitions", "8"},
{0, NULL, NULL}
};
- static volatile GType id = 0;
+ static GType id = 0;
if (g_once_init_enter ((gsize *) & id)) {
GType _id;
@@ -300,7 +300,7 @@ gst_vpx_enc_er_flags_get_type (void)
"Allow partitions to be decoded independently", "partitions"},
{0, NULL, NULL}
};
- static volatile GType id = 0;
+ static GType id = 0;
if (g_once_init_enter ((gsize *) & id)) {
GType _id;