mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
gstdeviceproviderfactory: Remove volatile from provider storage
Avoids a few compiler warnings: ../subprojects/gstreamer/gst/gstdeviceproviderfactory.c: In function ‘gst_device_provider_factory_finalize’: ../subprojects/gstreamer/gst/gstdeviceproviderfactory.c:96:12: warning: assignment discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers] 96 | provider = g_atomic_pointer_get (&factory->provider); | ^ ../subprojects/gstreamer/gst/gstdeviceproviderfactory.c: In function ‘gst_device_provider_factory_get’: ../subprojects/gstreamer/gst/gstdeviceproviderfactory.c:276:19: warning: assignment discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers] 276 | device_provider = g_atomic_pointer_get (&newfactory->provider); | ^ ../subprojects/gstreamer/gst/gstdeviceproviderfactory.c:309:21: warning: assignment discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers] 309 | device_provider = g_atomic_pointer_get (&newfactory->provider); | https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/414
This commit is contained in:
parent
99f7226344
commit
e45f187d13
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ struct _GstDeviceProviderFactory {
|
|||
|
||||
GType type; /* unique GType the device factory or 0 if not loaded */
|
||||
|
||||
volatile GstDeviceProvider *provider;
|
||||
GstDeviceProvider *provider;
|
||||
gpointer metadata;
|
||||
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
|
|
Loading…
Reference in a new issue