# HG changeset patch # User arpi # Date 1016150326 0 # Node ID 2000ba19b60685868b601269d8703b3578cf39c1 # Parent 54d3d7a207b089925845795e504d67210c7892b5 temp workaround for mencoder diff -r 54d3d7a207b0 -r 2000ba19b606 libmpcodecs/vd.c --- a/libmpcodecs/vd.c Thu Mar 14 23:29:33 2002 +0000 +++ b/libmpcodecs/vd.c Thu Mar 14 23:58:46 2002 +0000 @@ -110,11 +110,11 @@ int screen_size_y=0;//SCREEN_SIZE_Y; vo_functions_t* video_out=sh->video_out; - memset(&vtune,0,sizeof(vo_tune_info_t)); - mp_msg(MSGT_DECVIDEO,MSGL_INFO,"VDec: vo config request - %d x %d, %s \n", w,h,vo_format_name(preferred_outfmt)); + if(!video_out) return 1; // temp hack + // check if libvo and codec has common outfmt: for(i=0;icodec->outfmt[i]; @@ -186,6 +186,7 @@ fullscreen|(vidmode<<1)|(softzoom<<2)|(flip<<3), "MPlayer",out_fmt); + memset(&vtune,0,sizeof(vo_tune_info_t)); if(video_out->config(sh->disp_w,sh->disp_h, screen_size_x,screen_size_y, fullscreen|(vidmode<<1)|(softzoom<<2)|(flip<<3),