# HG changeset patch # User arpi # Date 1031089230 0 # Node ID ec187e86b20bcf9572f7d26ecd54ad97de305653 # Parent 3e7a601c5874ef7b6dfee1a4d2001ec0e9a715ba pass outflags[] index via sh->outfmtidx to the vd->control() func (for VfW) small hack - but other possible solutions are even worse :) diff -r 3e7a601c5874 -r ec187e86b20b libmpcodecs/vd.c --- a/libmpcodecs/vd.c Tue Sep 03 21:13:48 2002 +0000 +++ b/libmpcodecs/vd.c Tue Sep 03 21:40:30 2002 +0000 @@ -166,6 +166,7 @@ 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;