diff options
author | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-13 05:03:43 +0000 |
---|---|---|
committer | reynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-07-13 05:03:43 +0000 |
commit | 1a16cbfec37875026b9ddb2839698d0d150b05cd (patch) | |
tree | 3ae8458b7cb56a53e900f9de6ce301d6846a8f18 /libmpdemux | |
parent | 7e18214f7dd6a3d51fff89c56762560b590033aa (diff) |
marks several string parameters as const, as they are not modified inside the function, Patch by Stefan Huehner, stefan AT huehner-org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19058 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_ogg.c | 2 | ||||
-rw-r--r-- | libmpdemux/demuxer.c | 2 | ||||
-rw-r--r-- | libmpdemux/demuxer.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c index c180b2ca1b..e997fb562b 100644 --- a/libmpdemux/demux_ogg.c +++ b/libmpdemux/demux_ogg.c @@ -441,7 +441,7 @@ static unsigned char* demux_ogg_read_packet(ogg_stream_t* os,ogg_packet* pack,vo } // check if clang has substring from comma separated langlist -static int demux_ogg_check_lang(char *clang, char *langlist) +static int demux_ogg_check_lang(const char *clang, char *langlist) { char *c; diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index d648ac7363..1432dac7aa 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -922,7 +922,7 @@ if (demuxer->desc->seek) return 1; } -int demux_info_add(demuxer_t *demuxer, char *opt, char *param) +int demux_info_add(demuxer_t *demuxer, const char *opt, const char *param) { char **info = demuxer->info; int n = 0; diff --git a/libmpdemux/demuxer.h b/libmpdemux/demuxer.h index 9ca3e3a7ac..de49d8273b 100644 --- a/libmpdemux/demuxer.h +++ b/libmpdemux/demuxer.h @@ -348,7 +348,7 @@ extern int pts_from_bps; extern int extension_parsing; -int demux_info_add(demuxer_t *demuxer, char *opt, char *param); +int demux_info_add(demuxer_t *demuxer, const char *opt, const char *param); char* demux_info_get(demuxer_t *demuxer, char *opt); int demux_info_print(demuxer_t *demuxer); int demux_control(demuxer_t *demuxer, int cmd, void *arg); |