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:
parent
6fbb5c27a5
commit
576f61ea23
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user