# HG changeset patch # User reimar # Date 1236370812 0 # Node ID a72ddec9b02775e06c1c83627675f352597dba46 # Parent f872face2b3af158dd561a7077f7ffa9d78a8970 Add some "const" to mpcodecs_vd_drivers diff -r f872face2b3a -r a72ddec9b027 libmpcodecs/vd.c --- a/libmpcodecs/vd.c Fri Mar 06 20:11:23 2009 +0000 +++ b/libmpcodecs/vd.c Fri Mar 06 20:20:12 2009 +0000 @@ -53,7 +53,7 @@ * decoder, add it to libavcodec, except for wrappers around external * libraries and decoders requiring binary support. */ -vd_functions_t* mpcodecs_vd_drivers[] = { +const vd_functions_t * const mpcodecs_vd_drivers[] = { &mpcodecs_vd_null, #ifdef CONFIG_LIBAVCODEC &mpcodecs_vd_ffmpeg, diff -r f872face2b3a -r a72ddec9b027 libmpcodecs/vd.h --- a/libmpcodecs/vd.h Fri Mar 06 20:11:23 2009 +0000 +++ b/libmpcodecs/vd.h Fri Mar 06 20:20:12 2009 +0000 @@ -18,7 +18,7 @@ } 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[]; extern int vd_use_slices;