diff --git a/desktop/toolkit/qt5/qt5-gstreamer/files/arch/qt-gstreamer-gcc11.patch b/desktop/toolkit/qt5/qt5-gstreamer/files/arch/qt-gstreamer-gcc11.patch
new file mode 100644
index 0000000000..1fc18c1140
--- /dev/null
+++ b/desktop/toolkit/qt5/qt5-gstreamer/files/arch/qt-gstreamer-gcc11.patch
@@ -0,0 +1,13 @@
+diff --git a/elements/gstqtvideosink/gstqtvideosinkplugin.h b/elements/gstqtvideosink/gstqtvideosinkplugin.h
+index dc04671..a72c572 100644
+--- a/elements/gstqtvideosink/gstqtvideosinkplugin.h
++++ b/elements/gstqtvideosink/gstqtvideosinkplugin.h
+@@ -27,7 +27,7 @@ GST_DEBUG_CATEGORY_EXTERN(gst_qt_video_sink_debug);
+ #define DEFINE_TYPE_FULL(cpp_type, type_name, parent_type, additional_initializations) \
+ GType cpp_type::get_type() \
+ { \
+- static volatile gsize gonce_data = 0; \
++ static gsize gonce_data = 0; \
+ if (g_once_init_enter(&gonce_data)) { \
+ GType type = 0; \
+ GTypeInfo info; \
diff --git a/desktop/toolkit/qt5/qt5-gstreamer/pspec.xml b/desktop/toolkit/qt5/qt5-gstreamer/pspec.xml
index e21eeffc7a..8b28ae61c1 100755
--- a/desktop/toolkit/qt5/qt5-gstreamer/pspec.xml
+++ b/desktop/toolkit/qt5/qt5-gstreamer/pspec.xml
@@ -31,6 +31,7 @@
qt-gstreamer-1.6.patch
0001-Fix-build-with-GStreamer-1.16.0.patch
qt-gstreamer-1.18.patch
+ arch/qt-gstreamer-gcc11.patch