[Mplayer-cvslog] CVS: main/libmpcodecs vd_vfw.c,1.17,1.18
Arpi of Ize
arpi at mplayerhq.hu
Wed Sep 4 00:28:51 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv19789
Modified Files:
vd_vfw.c
Log Message:
enabled csp-query support, but only for formats with 'query' flag set
Index: vd_vfw.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_vfw.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- vd_vfw.c 3 Sep 2002 21:13:48 -0000 1.17
+++ vd_vfw.c 3 Sep 2002 22:28:31 -0000 1.18
@@ -115,11 +115,13 @@
case VDCTRL_SET_PP_LEVEL:
vfw_set_postproc(sh,10*(*((int*)arg)));
return CONTROL_OK;
-#if 0
+#if 1
// FIXME: make this optional...
case VDCTRL_QUERY_FORMAT:
{
HRESULT ret;
+ if(!(sh->codec->outflags[sh->outfmtidx]&CODECS_FLAG_QUERY))
+ return CONTROL_UNKNOWN; // do not query!
set_csp(priv->o_bih,*((int*)arg));
#ifdef BUILD_VFWEX
ret = ICDecompressQueryEx(priv->handle, sh->bih, priv->o_bih);
More information about the MPlayer-cvslog
mailing list