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; }