Mercurial > mplayer.hg
changeset 7941:0c8d85e22ff5
config_vo error handling
author | arpi |
---|---|
date | Mon, 28 Oct 2002 00:42:39 +0000 |
parents | 26fd599d4bad |
children | b582c6fb0053 |
files | libmpcodecs/vd_lzo.c libmpcodecs/vd_null.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_lzo.c Mon Oct 28 00:40:42 2002 +0000 +++ b/libmpcodecs/vd_lzo.c Mon Oct 28 00:42:39 2002 +0000 @@ -142,7 +142,7 @@ 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); }
--- a/libmpcodecs/vd_null.c Mon Oct 28 00:40:42 2002 +0000 +++ b/libmpcodecs/vd_null.c Mon Oct 28 00:42:39 2002 +0000 @@ -24,7 +24,7 @@ // 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; }