changeset 28826:a72ddec9b027

Add some "const" to mpcodecs_vd_drivers
author reimar
date Fri, 06 Mar 2009 20:20:12 +0000
parents f872face2b3a
children 2b021e3e1000
files libmpcodecs/vd.c libmpcodecs/vd.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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;