changeset 11566:a9448dd2430c

query_format support by Matthias Goerner <m.goerner@iu-bremen.de>
author alex
date Sun, 07 Dec 2003 15:18:39 +0000
parents 0d24c99199e2
children a6e12f49eaef
files libmpcodecs/vd_mpng.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_mpng.c	Sun Dec 07 15:08:20 2003 +0000
+++ b/libmpcodecs/vd_mpng.c	Sun Dec 07 15:18:39 2003 +0000
@@ -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;
 }