From e5976b2fca618e1a4c8e29b7f5a000f909ff535f Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 7 Dec 2003 15:18:39 +0000 Subject: [PATCH] query_format support by Matthias Goerner git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11567 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_mpng.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libmpcodecs/vd_mpng.c b/libmpcodecs/vd_mpng.c index da6a8bca68..f64a96ca7d 100644 --- a/libmpcodecs/vd_mpng.c +++ b/libmpcodecs/vd_mpng.c @@ -32,6 +32,12 @@ static int last_c=-1; // 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; }