From c8007742e7799f6c53595b344e48c37208f808b5 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 20 Aug 2006 22:48:36 +0000 Subject: [PATCH] Get rid of useless vf->priv casts git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19469 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_vo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libmpcodecs/vf_vo.c b/libmpcodecs/vf_vo.c index 571fbd7257..3f10a111bc 100644 --- a/libmpcodecs/vf_vo.c +++ b/libmpcodecs/vf_vo.c @@ -12,8 +12,8 @@ //===========================================================================// -struct priv_t {double pts; vo_functions_t *vo;}; -#define video_out (((struct priv_t *)(vf->priv))->vo) +struct vf_priv_s {double pts; vo_functions_t *vo;}; +#define video_out (vf->priv->vo) static int query_format(struct vf_instance_s* vf, unsigned int fmt); /* forward declaration */ @@ -104,7 +104,7 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){ if(!vo_config_count) return 0; // vo not configured? // record pts (potentially modified by filters) for main loop - ((struct priv_t *)vf->priv)->pts = pts; + vf->priv->pts = pts; // first check, maybe the vo/vf plugin implements draw_image using mpi: if(video_out->control(VOCTRL_DRAW_IMAGE,mpi)==VO_TRUE) return 1; // done. // nope, fallback to old draw_frame/draw_slice: