Call mpcodecs_config_vo with the proper image format for dmo and dshow codecs.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30645 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-02-18 22:28:55 +00:00
parent d58a991207
commit 0f86bc16ba
2 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ static int init(sh_video_t *sh){
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:

View File

@ -80,8 +80,8 @@ static int init(sh_video_t *sh){
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: