Mercurial > mplayer.hg
changeset 36765:97446d4850cc
m_option, vf_scale: Add some missing const.
author | reimar |
---|---|
date | Sun, 16 Feb 2014 16:29:59 +0000 |
parents | b11dc6175323 |
children | aadf2020f6f0 |
files | libmpcodecs/vf_scale.c m_option.c m_option.h |
diffstat | 3 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_scale.c Sun Feb 16 16:29:58 2014 +0000 +++ b/libmpcodecs/vf_scale.c Sun Feb 16 16:29:59 2014 +0000 @@ -654,7 +654,7 @@ /// An example of presets usage static const struct size_preset { - char* name; + const char* name; int w, h; } vf_size_presets_defs[] = { // TODO add more 'standard' resolutions
--- a/m_option.c Sun Feb 16 16:29:58 2014 +0000 +++ b/m_option.c Sun Feb 16 16:29:59 2014 +0000 @@ -1962,9 +1962,9 @@ static int parse_obj_presets(const m_option_t* opt,const char *name, const char *param, void* dst, int src) { m_obj_presets_t* obj_p = (m_obj_presets_t*)opt->priv; - m_struct_t *in_desc,*out_desc; + const m_struct_t *in_desc,*out_desc; int s,i; - unsigned char* pre; + const unsigned char* pre; char* pre_name = NULL; if(!obj_p) {
--- a/m_option.h Sun Feb 16 16:29:58 2014 +0000 +++ b/m_option.h Sun Feb 16 16:29:59 2014 +0000 @@ -122,13 +122,13 @@ /// Extra definition needed for \ref m_option_type_obj_presets options. typedef struct { /// Description of the struct holding the presets. - struct m_struct_st* in_desc; + const struct m_struct_st* in_desc; /// Description of the struct that should be set by the presets. - struct m_struct_st* out_desc; + const struct m_struct_st* out_desc; /// Pointer to an array of structs defining the various presets. - void* presets; + const void* presets; /// Offset of the preset's name inside the in_struct. - void* name_off; + const void* name_off; } m_obj_presets_t; /// Set several fields in a struct at once.