Mercurial > mplayer.hg
changeset 25232:893db6cc97b2
Add appropriate const specifiers to some custom parse functions.
author | reimar |
---|---|
date | Sun, 02 Dec 2007 16:40:20 +0000 |
parents | ee5eccc1206d |
children | 7c82d9df9c38 |
files | libmpcodecs/ve_x264.c libvo/vo_zr.c stream/stream_dvd.c |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_x264.c Sun Dec 02 16:10:56 2007 +0000 +++ b/libmpcodecs/ve_x264.c Sun Dec 02 16:40:20 2007 +0000 @@ -76,7 +76,7 @@ static int put_image(struct vf_instance_s *vf, mp_image_t *mpi, double pts); static int encode_frame(struct vf_instance_s *vf, x264_picture_t *pic_in); -void x264enc_set_param(m_option_t* opt, char* arg) +void x264enc_set_param(const m_option_t* opt, char* arg) { static int initted = 0; if(!initted) {
--- a/libvo/vo_zr.c Sun Dec 02 16:10:56 2007 +0000 +++ b/libvo/vo_zr.c Sun Dec 02 16:40:20 2007 +0000 @@ -649,7 +649,7 @@ /* copied and adapted from vo_aa_parseoption */ int -vo_zr_parseoption(m_option_t* conf, char *opt, char *param){ +vo_zr_parseoption(const m_option_t* conf, const char *opt, const char *param){ /* got an option starting with zr */ zr_info_t *zr = &zr_info[zr_parsing]; int i; @@ -775,7 +775,7 @@ return ERR_NOT_AN_OPTION; } -void vo_zr_revertoption(m_option_t* opt,char* param) { +void vo_zr_revertoption(const m_option_t* opt,const char* param) { zr_info_t *zr = &zr_info[1]; zr_count = 1;
--- a/stream/stream_dvd.c Sun Dec 02 16:10:56 2007 +0000 +++ b/stream/stream_dvd.c Sun Dec 02 16:40:20 2007 +0000 @@ -156,7 +156,7 @@ stream_opts_fields }; -int dvd_parse_chapter_range(m_option_t *conf, const char *range) { +int dvd_parse_chapter_range(const m_option_t *conf, const char *range) { const char *s; char *t; if (!range)