More simplification

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22080 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-01-30 19:00:54 +00:00
parent fa1176f636
commit 312341466d
1 changed files with 1 additions and 2 deletions

View File

@ -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"); //printf("[%s] Query!! (%s)\n", MOD_NAME, (codec==IMGFMT_YV12)?"YV12":"none");
switch(cmd){ switch(cmd){
case VDCTRL_QUERY_FORMAT: case VDCTRL_QUERY_FORMAT:
if( (*((int*)arg)) == IMGFMT_BGR24 && priv->codec == IMGFMT_BGR24) return CONTROL_TRUE; if (*(int *)arg == priv->codec) return CONTROL_TRUE;
if( (*((int*)arg)) == IMGFMT_YV12 && priv->codec == IMGFMT_YV12) return CONTROL_TRUE;
return CONTROL_FALSE; return CONTROL_FALSE;
} }
return CONTROL_UNKNOWN; return CONTROL_UNKNOWN;