From af90823fd911b5175447cb91017bbed53eeb7f62 Mon Sep 17 00:00:00 2001 From: arpi Date: Thu, 14 Mar 2002 23:58:46 +0000 Subject: temp workaround for mencoder git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5078 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libmpcodecs/vd.c') diff --git a/libmpcodecs/vd.c b/libmpcodecs/vd.c index e1a4d574d8..0898be990d 100644 --- a/libmpcodecs/vd.c +++ b/libmpcodecs/vd.c @@ -110,11 +110,11 @@ int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outf 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 @@ int mpcodecs_config_vo(sh_video_t *sh, int w, int h, unsigned int preferred_outf 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), -- cgit v1.2.3