[Mplayer-cvslog] CVS: main/libmpcodecs vd_mpng.c,1.5,1.6
Alex Beregszaszi
alex at mplayerhq.hu
Sun Dec 7 16:19:02 CET 2003
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv28862
Modified Files:
vd_mpng.c
Log Message:
query_format support by Matthias Goerner <m.goerner at iu-bremen.de>
Index: vd_mpng.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_mpng.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- vd_mpng.c 22 Dec 2002 16:31:04 -0000 1.5
+++ vd_mpng.c 7 Dec 2003 15:18:39 -0000 1.6
@@ -32,6 +32,12 @@
// to set/get/query special features/parameters
static int control(sh_video_t *sh,int cmd,void* arg,...){
+ switch (cmd)
+ {
+ case VDCTRL_QUERY_FORMAT:
+ if (*((int *) arg) == out_fmt) return CONTROL_TRUE;
+ return CONTROL_FALSE;
+ }
return CONTROL_UNKNOWN;
}
More information about the MPlayer-cvslog
mailing list