From 0a5ff5eef340cc4b132b036690ee168cd4bd8f4a Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 25 Jul 2010 11:19:41 +0000 Subject: [PATCH] vo_corevideo: avoid dangerous casts Declare variables with proper types to avoid dangerous pointer casts. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31805 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_corevideo.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libvo/vo_corevideo.m b/libvo/vo_corevideo.m index 14d664cdd3..aa7bffe310 100644 --- a/libvo/vo_corevideo.m +++ b/libvo/vo_corevideo.m @@ -685,8 +685,7 @@ static int control(uint32_t request, void *data) */ - (void)reshape { - uint32_t d_width; - uint32_t d_height; + int d_width, d_height; NSRect frame = [self frame]; vo_dwidth = frame.size.width; @@ -702,7 +701,7 @@ static int control(uint32_t request, void *data) //set texture frame if(vo_keepaspect) { - aspect( (int *)&d_width, (int *)&d_height, A_WINZOOM); + aspect(&d_width, &d_height, A_WINZOOM); textureFrame = NSMakeRect((vo_dwidth - d_width) / 2, (vo_dheight - d_height) / 2, d_width, d_height); }