[Mplayer-cvslog] CVS: main/libmpcodecs vd_zlib.c,1.4,1.5

Alex Beregszaszi alex at mplayer.dev.hu
Sat Mar 23 18:27:48 CET 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mplayer:/var/tmp.root/cvs-serv15314

Modified Files:
	vd_zlib.c 
Log Message:
10l, hopefully fixed query format

Index: vd_zlib.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_zlib.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- vd_zlib.c	23 Mar 2002 17:16:49 -0000	1.4
+++ vd_zlib.c	23 Mar 2002 17:27:46 -0000	1.5
@@ -31,11 +31,12 @@
 // to set/get/query special features/parameters
 static int control(sh_video_t *sh, int cmd, void *arg, ...)
 {
+    vd_zlib_ctx *ctx = sh->context;
     switch(cmd)
     {
 	case VDCTRL_QUERY_FORMAT:
 	{
-	    if (*((int*)arg) == IMGFMT_BGR24)
+	    if (*((int*)arg) == (IMGFMT_BGR|ctx->depth))
 		return(CONTROL_TRUE);
 	    else
 		return(CONTROL_FALSE);




More information about the MPlayer-cvslog mailing list