1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

config_vo error handling

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7942 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-10-28 00:42:39 +00:00
parent 6fbb5c27a5
commit 576f61ea23
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags)
return NULL;
}
mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,priv->codec);
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,priv->codec)) return NULL;
init_done++;
free(tmp);
}

View File

@ -24,7 +24,7 @@ static int control(sh_video_t *sh,int cmd,void* arg,...){
// init driver
static int init(sh_video_t *sh){
mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24);
if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24)) return 0;
return 1;
}