Mercurial > mplayer.hg
diff libmpcodecs/vf_vo.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 | 1de2a46a0987 |
children | 00fff9a3b735 |
line wrap: on
line diff
--- a/libmpcodecs/vf_vo.c Sun Dec 02 14:17:45 2007 +0000 +++ b/libmpcodecs/vf_vo.c Sun Dec 02 14:24:23 2007 +0000 @@ -23,7 +23,7 @@ struct vf_priv_s { double pts; - vo_functions_t *vo; + const vo_functions_t *vo; #ifdef USE_ASS ass_renderer_t* ass_priv; int prev_visibility; @@ -222,7 +222,7 @@ vf->start_slice=start_slice; vf->uninit=uninit; vf->priv=calloc(1, sizeof(struct vf_priv_s)); - vf->priv->vo = (vo_functions_t *)args; + vf->priv->vo = (const vo_functions_t *)args; if(!video_out) return 0; // no vo ? // if(video_out->preinit(args)) return 0; // preinit failed return 1;