changeset 5278:a11cd73811a8

fixed query format
author alex
date Sat, 23 Mar 2002 17:16:49 +0000
parents 7df9fc3308ac
children 652ec33400fd
files libmpcodecs/vd_zlib.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_zlib.c	Sat Mar 23 16:56:05 2002 +0000
+++ b/libmpcodecs/vd_zlib.c	Sat Mar 23 17:16:49 2002 +0000
@@ -35,8 +35,10 @@
     {
 	case VDCTRL_QUERY_FORMAT:
 	{
-	    *((int*)arg) = IMGFMT_BGR24;
-	    return(CONTROL_TRUE);
+	    if (*((int*)arg) == IMGFMT_BGR24)
+		return(CONTROL_TRUE);
+	    else
+		return(CONTROL_FALSE);
 	}
     }
     return(CONTROL_UNKNOWN);