[MPlayer-cvslog] r29699 - trunk/libvo/vo_corevideo.m

adrian subversion at mplayerhq.hu
Sun Sep 20 21:07:57 CEST 2009


Author: adrian
Date: Sun Sep 20 21:07:57 2009
New Revision: 29699

Log:
Fix vo_corevideo with shared buffer after r29606: Only do GUI dependent display config if shared buffer is not enabled.

Modified:
   trunk/libvo/vo_corevideo.m

Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m	Sun Sep 20 16:41:35 2009	(r29698)
+++ trunk/libvo/vo_corevideo.m	Sun Sep 20 21:07:57 2009	(r29699)
@@ -161,10 +161,6 @@ static void free_file_specific(void)
 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 @@ static int config(uint32_t width, uint32
 
 	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)


More information about the MPlayer-cvslog mailing list