diff options
author | 2002-03-23 17:16:49 +0000 | |
---|---|---|
committer | 2002-03-23 17:16:49 +0000 | |
commit | 6012176aeea14e0bc573d7deb967c63122b6f784 (patch) | |
tree | 652785f21c2841dc6e6c179d9f49d51cf4e81b6b /libmpcodecs/vd_zlib.c | |
parent | b1594708a78d7d003b871d85f5d12bc60e94aa1c (diff) |
fixed query format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5279 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_zlib.c')
-rw-r--r-- | libmpcodecs/vd_zlib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpcodecs/vd_zlib.c b/libmpcodecs/vd_zlib.c index cbb4dba1e7..3f99f39889 100644 --- a/libmpcodecs/vd_zlib.c +++ b/libmpcodecs/vd_zlib.c @@ -35,8 +35,10 @@ static int control(sh_video_t *sh, int cmd, void *arg, ...) { 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); |