Mercurial > mplayer.hg
changeset 5077:2000ba19b606
temp workaround for mencoder
author | arpi |
---|---|
date | Thu, 14 Mar 2002 23:58:46 +0000 |
parents | 54d3d7a207b0 |
children | 18c5dc6db592 |
files | libmpcodecs/vd.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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;i<CODECS_MAX_OUTFMT;i++){ out_fmt=sh->codec->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),