summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-16 01:40:24 +0000
committerreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-16 01:40:24 +0000
commit15e8c12de234ddd93366def38b807567928fbb40 (patch)
tree6736b2a829cd66460dcc765391e3296ab646196a /mplayer.c
parentca57bf90332aa59bba3385fa13cff139b7a20295 (diff)
downloadmpv-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mplayer.c b/mplayer.c
index f3b2a318cf..dbe8b2759e 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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 },