changeset 19463:ed2785b4dd48

Get rid of useless vf->priv casts
author reimar
date Sun, 20 Aug 2006 22:48:36 +0000
parents 08fc089138f4
children 3f19764369ac
files libmpcodecs/vf_vo.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_vo.c	Sun Aug 20 21:41:44 2006 +0000
+++ b/libmpcodecs/vf_vo.c	Sun Aug 20 22:48:36 2006 +0000
@@ -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 @@
         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: