mirror of https://github.com/mpv-player/mpv
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:
parent
81b3617039
commit
e5976b2fca
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue