diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-26 16:48:06 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-26 16:51:17 +0300 |
commit | 170d69a71ecd679d0b5c7f4b6aad008d9dfc0bdf (patch) | |
tree | 0906e3dd54e8fdb0a270468d31ca25fd7f80145b /libmpcodecs/ad_internal.h | |
parent | def7ed045daee1b1342669a35a1e543b8720895d (diff) | |
download | mpv-170d69a71ecd679d0b5c7f4b6aad008d9dfc0bdf.tar.bz2 mpv-170d69a71ecd679d0b5c7f4b6aad008d9dfc0bdf.tar.xz |
Make audio decoder description structs const
Make the per-decoder struct ad_functions and its ->info struct
constants. Same for the mpcodecs_ad_drivers[] table of pointers to
those structs.
Diffstat (limited to 'libmpcodecs/ad_internal.h')
-rw-r--r-- | libmpcodecs/ad_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/ad_internal.h b/libmpcodecs/ad_internal.h index 0bd01bcd6c..4018b57657 100644 --- a/libmpcodecs/ad_internal.h +++ b/libmpcodecs/ad_internal.h @@ -17,7 +17,7 @@ static void uninit(sh_audio_t *sh); static int control(sh_audio_t *sh,int cmd,void* arg, ...); static int decode_audio(sh_audio_t *sh,unsigned char *buffer,int minlen,int maxlen); -#define LIBAD_EXTERN(x) ad_functions_t mpcodecs_ad_##x = {\ +#define LIBAD_EXTERN(x) const ad_functions_t mpcodecs_ad_##x = {\ &info,\ preinit,\ init,\ |