# HG changeset patch # User adrian # Date 1253473677 0 # Node ID 6c2cbc64c596708ccf5fcee5ac4b649aaea62fd3 # Parent 862ec55c4e1d3902a09b68121f738f5156dea263 Fix vo_corevideo with shared buffer after r29606: Only do GUI dependent display config if shared buffer is not enabled. diff -r 862ec55c4e1d -r 6c2cbc64c596 libvo/vo_corevideo.m --- 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)