diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-24 08:43:56 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-25 07:16:32 +0300 |
commit | 31db39d8ec9cd2b8df0123e2f2142a187733ecad (patch) | |
tree | d550915eb5339500161fb58ff30c991d97cc3171 /libmpcodecs/vd.h | |
parent | 7dc42263486bd45d2ba830f065a8556c02aaf7c8 (diff) |
Make video decoder description structs const
This makes the per-decoder struct vd_functions and its ->info
struct constants. Same for the mpcodecs_vd_drivers[] table of
pointers to those structs.
Diffstat (limited to 'libmpcodecs/vd.h')
-rw-r--r-- | libmpcodecs/vd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/vd.h b/libmpcodecs/vd.h index 03f1453539..df71970f7d 100644 --- a/libmpcodecs/vd.h +++ b/libmpcodecs/vd.h @@ -10,7 +10,7 @@ typedef mp_codec_info_t vd_info_t; /* interface of video decoder drivers */ typedef struct vd_functions { - vd_info_t *info; + const vd_info_t *info; int (*init)(sh_video_t *sh); void (*uninit)(sh_video_t *sh); int (*control)(sh_video_t *sh,int cmd,void* arg, ...); @@ -18,7 +18,7 @@ typedef struct vd_functions } vd_functions_t; // NULL terminated array of all drivers -extern vd_functions_t* mpcodecs_vd_drivers[]; +extern const vd_functions_t * const mpcodecs_vd_drivers[]; #define VDCTRL_QUERY_FORMAT 3 /* test for availabilty of a format */ #define VDCTRL_QUERY_MAX_PP_LEVEL 4 /* test for postprocessing support (max level) */ |