[MPlayer-cvslog] r38078 - in trunk/gui/win32: gui.h interface.c

ib subversion at mplayerhq.hu
Fri Apr 13 12:42:35 EEST 2018


Author: ib
Date: Fri Apr 13 12:42:35 2018
New Revision: 38078

Log:
Avoid warning in Win32 GUI.

Since svn r37840, codecname is assigned a constant character pointer.

Modified:
   trunk/gui/win32/gui.h
   trunk/gui/win32/interface.c

Modified: trunk/gui/win32/gui.h
==============================================================================
--- trunk/gui/win32/gui.h	Fri Apr 13 12:33:08 2018	(r38077)
+++ trunk/gui/win32/gui.h	Fri Apr 13 12:42:35 2018	(r38078)
@@ -38,7 +38,7 @@ extern play_tree_t* playtree;
 extern int video_window;
 extern int console;
 extern NOTIFYICONDATA nid;
-extern char *codecname;
+extern const char *codecname;
 
 typedef struct window_priv_t window_priv_t;
 struct window_priv_t

Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c	Fri Apr 13 12:33:08 2018	(r38077)
+++ trunk/gui/win32/interface.c	Fri Apr 13 12:42:35 2018	(r38078)
@@ -82,7 +82,7 @@
 int guiWinID = 0;
 
 char *skinName = NULL;
-char *codecname = NULL;
+const char *codecname = NULL;
 static gui_t *mygui = NULL;
 static int update_videowindow(void);
 static RECT old_rect;


More information about the MPlayer-cvslog mailing list