From 576f61ea230d9d02ce9db2202c1b5a50478fda8b Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 28 Oct 2002 00:42:39 +0000 Subject: [PATCH] config_vo error handling git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7942 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_lzo.c | 2 +- libmpcodecs/vd_null.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libmpcodecs/vd_lzo.c b/libmpcodecs/vd_lzo.c index 2560459136..18b9a9a75b 100644 --- a/libmpcodecs/vd_lzo.c +++ b/libmpcodecs/vd_lzo.c @@ -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); } diff --git a/libmpcodecs/vd_null.c b/libmpcodecs/vd_null.c index 0d6bb8f441..a82a3ba036 100644 --- a/libmpcodecs/vd_null.c +++ b/libmpcodecs/vd_null.c @@ -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; }