Zebediah Figura : winegstreamer: Constify some static variables.

Alexandre Julliard julliard at winehq.org
Fri Feb 4 16:08:34 CST 2022


Module: wine
Branch: master
Commit: 83023a9f2b4840a97c5b587a2ba6c2f05a44b7b0
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=83023a9f2b4840a97c5b587a2ba6c2f05a44b7b0

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Thu Feb  3 18:45:25 2022 -0600

winegstreamer: Constify some static variables.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winegstreamer/mfplat.c      | 10 +++++-----
 dlls/winegstreamer/wma_decoder.c |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/winegstreamer/mfplat.c b/dlls/winegstreamer/mfplat.c
index aa5e60ec116..a111bbe196d 100644
--- a/dlls/winegstreamer/mfplat.c
+++ b/dlls/winegstreamer/mfplat.c
@@ -437,21 +437,21 @@ HRESULT mfplat_get_class_object(REFCLSID rclsid, REFIID riid, void **obj)
 }
 
 static WCHAR audio_converterW[] = L"Audio Converter";
-static const GUID *audio_converter_supported_types[] =
+static const GUID *const audio_converter_supported_types[] =
 {
     &MFAudioFormat_PCM,
     &MFAudioFormat_Float,
 };
 
 static WCHAR wma_decoderW[] = L"WMAudio Decoder MFT";
-static const GUID *wma_decoder_input_types[] =
+static const GUID *const wma_decoder_input_types[] =
 {
     &MEDIASUBTYPE_MSAUDIO1,
     &MFAudioFormat_WMAudioV8,
     &MFAudioFormat_WMAudioV9,
     &MFAudioFormat_WMAudio_Lossless,
 };
-static const GUID *wma_decoder_output_types[] =
+static const GUID *const wma_decoder_output_types[] =
 {
     &MFAudioFormat_PCM,
     &MFAudioFormat_Float,
@@ -465,9 +465,9 @@ static const struct mft
     const UINT32 flags;
     const GUID *major_type;
     const UINT32 input_types_count;
-    const GUID **input_types;
+    const GUID *const *input_types;
     const UINT32 output_types_count;
-    const GUID **output_types;
+    const GUID *const *output_types;
 }
 mfts[] =
 {
diff --git a/dlls/winegstreamer/wma_decoder.c b/dlls/winegstreamer/wma_decoder.c
index 945390f44db..78316059052 100644
--- a/dlls/winegstreamer/wma_decoder.c
+++ b/dlls/winegstreamer/wma_decoder.c
@@ -30,14 +30,14 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(wmadec);
 
-static const GUID *wma_decoder_input_types[] =
+static const GUID *const wma_decoder_input_types[] =
 {
     &MEDIASUBTYPE_MSAUDIO1,
     &MFAudioFormat_WMAudioV8,
     &MFAudioFormat_WMAudioV9,
     &MFAudioFormat_WMAudio_Lossless,
 };
-static const GUID *wma_decoder_output_types[] =
+static const GUID *const wma_decoder_output_types[] =
 {
     &MFAudioFormat_Float,
     &MFAudioFormat_PCM,




More information about the wine-cvs mailing list