query_format support by Matthias Goerner <m.goerner@iu-bremen.de>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11567 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-12-07 15:18:39 +00:00
parent 81b3617039
commit e5976b2fca
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}