changeset 29657:6c2cbc64c596

Fix vo_corevideo with shared buffer after r29606: Only do GUI dependent display config if shared buffer is not enabled.
author adrian
date Sun, 20 Sep 2009 19:07:57 +0000
parents 862ec55c4e1d
children 6235d300cf7e
files libvo/vo_corevideo.m
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_corevideo.m	Sun Sep 20 14:41:35 2009 +0000
+++ b/libvo/vo_corevideo.m	Sun Sep 20 19:07:57 2009 +0000
@@ -161,10 +161,6 @@
 static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint32_t flags, char *title, uint32_t format)
 {
 	free_file_specific();
-	config_movie_aspect((float)d_width/d_height);
-
-	vo_dwidth  = d_width  *= mpGLView->winSizeMult;
-	vo_dheight = d_height *= mpGLView->winSizeMult;
 
 	//misc mplayer setup
 	image_width = width;
@@ -183,6 +179,11 @@
 
 	if(!shared_buffer)
 	{
+		config_movie_aspect((float)d_width/d_height);
+
+		vo_dwidth  = d_width  *= mpGLView->winSizeMult;
+		vo_dheight = d_height *= mpGLView->winSizeMult;
+
 		image_data = malloc(image_width*image_height*image_bytes);
 		image_datas[0] = image_data;
 		if (vo_doublebuffering)