summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ad.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-26 16:48:06 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-26 16:51:17 +0300
commit170d69a71ecd679d0b5c7f4b6aad008d9dfc0bdf (patch)
tree0906e3dd54e8fdb0a270468d31ca25fd7f80145b /libmpcodecs/ad.h
parentdef7ed045daee1b1342669a35a1e543b8720895d (diff)
downloadmpv-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.h')
-rw-r--r--libmpcodecs/ad.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/ad.h b/libmpcodecs/ad.h
index 8063ea994e..a23faa24e7 100644
--- a/libmpcodecs/ad.h
+++ b/libmpcodecs/ad.h
@@ -9,7 +9,7 @@ typedef mp_codec_info_t ad_info_t;
/* interface of video decoder drivers */
typedef struct ad_functions
{
- ad_info_t *info;
+ const ad_info_t *info;
int (*preinit)(sh_audio_t *sh);
int (*init)(sh_audio_t *sh);
void (*uninit)(sh_audio_t *sh);
@@ -18,7 +18,7 @@ typedef struct ad_functions
} ad_functions_t;
// NULL terminated array of all drivers
-extern ad_functions_t* mpcodecs_ad_drivers[];
+extern const ad_functions_t * const mpcodecs_ad_drivers[];
// fallback if ADCTRL_RESYNC not implemented: sh_audio->a_in_buffer_len=0;
#define ADCTRL_RESYNC_STREAM 1 /* resync, called after seeking! */