changeset 7262:5fc42290c305

enabled csp-query support, but only for formats with 'query' flag set
author arpi
date Tue, 03 Sep 2002 22:28:31 +0000
parents ec187e86b20b
children fe7213b0baee
files libmpcodecs/vd_vfw.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_vfw.c	Tue Sep 03 21:40:30 2002 +0000
+++ b/libmpcodecs/vd_vfw.c	Tue Sep 03 22:28:31 2002 +0000
@@ -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);