diff spudec.c @ 25219:e82ecde2cbd4

Mark several uses of vo_functions_t as const to stop some of the current hacks e.g. in vidix code from spreading.
author reimar
date Sun, 02 Dec 2007 14:24:23 +0000
parents edc74af15f2f
children 078bdfd44751
line wrap: on
line diff
--- a/spudec.c	Sun Dec 02 14:17:45 2007 +0000
+++ b/spudec.c	Sun Dec 02 14:24:23 2007 +0000
@@ -90,7 +90,7 @@
   unsigned char *scaled_aimage;
   int auto_palette; /* 1 if we lack a palette and must use an heuristic. */
   int font_start_level;  /* Darkest value used for the computed font */
-  vo_functions_t *hw_spu;
+  const vo_functions_t *hw_spu;
   int spu_changed;
   unsigned int forced_subs_only;     /* flag: 0=display all subtitle, !0 display only forced subtitles */
   unsigned int is_forced_sub;         /* true if current subtitle is a forced subtitle */
@@ -1170,7 +1170,7 @@
   }
 }
 
-void spudec_set_hw_spu(void *this, vo_functions_t *hw_spu)
+void spudec_set_hw_spu(void *this, const vo_functions_t *hw_spu)
 {
   spudec_handle_t *spu = (spudec_handle_t*)this;
   if (!spu)