mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 08:12:17 +00:00
More simplification
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22080 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fa1176f636
commit
312341466d
@ -39,8 +39,7 @@ static int control (sh_video_t *sh, int cmd, void* arg, ...)
|
||||
//printf("[%s] Query!! (%s)\n", MOD_NAME, (codec==IMGFMT_YV12)?"YV12":"none");
|
||||
switch(cmd){
|
||||
case VDCTRL_QUERY_FORMAT:
|
||||
if( (*((int*)arg)) == IMGFMT_BGR24 && priv->codec == IMGFMT_BGR24) return CONTROL_TRUE;
|
||||
if( (*((int*)arg)) == IMGFMT_YV12 && priv->codec == IMGFMT_YV12) return CONTROL_TRUE;
|
||||
if (*(int *)arg == priv->codec) return CONTROL_TRUE;
|
||||
return CONTROL_FALSE;
|
||||
}
|
||||
return CONTROL_UNKNOWN;
|
||||
|
Loading…
Reference in New Issue
Block a user