diff options
author | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-16 01:40:24 +0000 |
---|---|---|
committer | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-16 01:40:24 +0000 |
commit | 15e8c12de234ddd93366def38b807567928fbb40 (patch) | |
tree | 6736b2a829cd66460dcc765391e3296ab646196a /mplayer.c | |
parent | ca57bf90332aa59bba3385fa13cff139b7a20295 (diff) | |
download | mpv-15e8c12de234ddd93366def38b807567928fbb40.tar.bz2 mpv-15e8c12de234ddd93366def38b807567928fbb40.tar.xz |
marks several strings inside structs as const when they hold just
read-only information and modifies GetLanguage in Gui/mplayer/gtk/menu.c
to cope which the changes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19115 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2290,7 +2290,7 @@ int mp_property_do(const char* name,int action, void* val) { /// List of the commands that can be handled by setting a property. static struct { /// property name - char* name; + const char* name; /// cmd id int cmd; /// set/adjust or toggle command @@ -2300,7 +2300,7 @@ static struct { /// osd msg id if it must be shared int osd_id; /// osd msg template - char* osd_msg; + const char* osd_msg; } set_prop_cmd[] = { // audio { "volume", MP_CMD_VOLUME, 0, OSD_VOLUME, -1, MSGTR_Volume }, |