mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 14:56:55 +00:00
pass outflags[] index via sh->outfmtidx to the vd->control() func (for VfW)
small hack - but other possible solutions are even worse :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7262 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
55e92bda68
commit
a9cce3d878
@ -166,6 +166,7 @@ csp_again:
|
||||
mp_msg(MSGT_CPLAYER,MSGL_DBG2,"vo_debug: query(%s) returned 0x%X (i=%d) \n",vo_format_name(out_fmt),flags,i);
|
||||
if((flags&2) || (flags && j<0)){
|
||||
// check (query) if codec really support this outfmt...
|
||||
sh->outfmtidx=j; // pass index to the control() function this way
|
||||
if(mpvdec->control(sh,VDCTRL_QUERY_FORMAT,&out_fmt)==CONTROL_FALSE)
|
||||
continue;
|
||||
j=i; vo_flags=flags; if(flags&2) break;
|
||||
|
Loading…
Reference in New Issue
Block a user