From 844c8ffc48c7e7715c43a1290188f5bdfa289821 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 2 Dec 2007 14:24:23 +0000 Subject: 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 --- spudec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spudec.c') 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) -- cgit v1.2.3