[PATCH 2/2] winegstreamer: Make some strings static constants.
Alex Henrie
alexhenrie24 at gmail.com
Thu Nov 17 09:46:38 CST 2016
Cc: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
dlls/winegstreamer/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winegstreamer/main.c b/dlls/winegstreamer/main.c
index 2bb69f4..6c49572 100644
--- a/dlls/winegstreamer/main.c
+++ b/dlls/winegstreamer/main.c
@@ -52,7 +52,7 @@ static const WCHAR wGstreamer_Mp3[] =
static const WCHAR wGstreamer_AudioConvert[] =
{'G','S','t','r','e','a','m','e','r',' ','A','u','d','i','o','C','o','n','v','e','r','t',' ','f','i','l','t','e','r',0};
-static WCHAR wNull[] = {'\0'};
+static const WCHAR wNull[] = {'\0'};
static const AMOVIESETUP_MEDIATYPE amfMTstream[] =
{ { &MEDIATYPE_Stream, &WINESUBTYPE_Gstreamer },
@@ -262,8 +262,8 @@ DWORD Gstreamer_init(void)
static int inited;
if (!inited) {
- char argv0[] = "wine";
- char argv1[] = "--gst-disable-registry-fork";
+ static const char argv0[] = "wine";
+ static const char argv1[] = "--gst-disable-registry-fork";
char **argv = HeapAlloc(GetProcessHeap(), 0, sizeof(char *)*3);
int argc = 2;
GError *err = NULL;
--
2.10.2
More information about the wine-patches
mailing list