1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-01 03:40:43 +00:00

10l, hopefully fixed query format

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5280 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-03-23 17:27:46 +00:00
parent 6012176aee
commit 3afc6449c1

View File

@ -31,11 +31,12 @@ typedef struct {
// 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);