summaryrefslogtreecommitdiffstats
path: root/spudec.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-02 14:24:23 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-02 14:24:23 +0000
commit844c8ffc48c7e7715c43a1290188f5bdfa289821 (patch)
tree84f08c54b7cce8b02b146221488939235da9fe28 /spudec.c
parentbbab104b7e5238c510f51a8e671b3d8f4fcbfa0a (diff)
downloadmpv-844c8ffc48c7e7715c43a1290188f5bdfa289821.tar.bz2
mpv-844c8ffc48c7e7715c43a1290188f5bdfa289821.tar.xz
Mark several uses of vo_functions_t as const to stop some of the current
hacks e.g. in vidix code from spreading. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25247 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'spudec.c')
-rw-r--r--spudec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spudec.c b/spudec.c
index 0263c9e689..99edb98136 100644
--- a/spudec.c
+++ b/spudec.c
@@ -90,7 +90,7 @@ typedef struct {
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_free(void *this)
}
}
-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)