summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_macosx.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m
index 7cf846b7c5..ebcf3eb1e3 100644
--- a/libvo/vo_macosx.m
+++ b/libvo/vo_macosx.m
@@ -119,10 +119,11 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_
break;
}
image_bytes = (image_depth + 7) / 8;
- image_data = malloc(image_width*image_height*image_bytes);
if(!shared_buffer)
{
+ image_data = malloc(image_width*image_height*image_bytes);
+
monitor_aspect = (float)screen_frame.size.width/(float)screen_frame.size.height;
//set aspect