Mercurial > mplayer.hg
changeset 30603:c5d8b7640b7d
Call mpcodecs_config_vo with the proper image format for dmo and dshow codecs.
author | reimar |
---|---|
date | Thu, 18 Feb 2010 22:28:55 +0000 |
parents | e69ef665b0fc |
children | bc87504d1d6a |
files | libmpcodecs/vd_dmo.c libmpcodecs/vd_dshow.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_dmo.c Thu Feb 18 21:48:49 2010 +0000 +++ b/libmpcodecs/vd_dmo.c Thu Feb 18 22:28:55 2010 +0000 @@ -52,8 +52,8 @@ mp_msg(MSGT_DECVIDEO,MSGL_HINT,MSGTR_DownloadCodecPackage); return 0; } - if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0; out_fmt=sh->codec->outfmt[sh->outfmtidx]; + if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,out_fmt)) return 0; switch(out_fmt){ case IMGFMT_YUY2: case IMGFMT_UYVY:
--- a/libmpcodecs/vd_dshow.c Thu Feb 18 21:48:49 2010 +0000 +++ b/libmpcodecs/vd_dshow.c Thu Feb 18 22:28:55 2010 +0000 @@ -80,8 +80,8 @@ mp_msg(MSGT_DECVIDEO,MSGL_HINT,MSGTR_DownloadCodecPackage); return 0; } - if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2)) return 0; out_fmt=sh->codec->outfmt[sh->outfmtidx]; + if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,out_fmt)) return 0; switch(out_fmt){ case IMGFMT_YUY2: case IMGFMT_UYVY: