mirror of
https://github.com/mpv-player/mpv
synced 2025-01-10 17:09:45 +00:00
fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2816 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b123c29e90
commit
89a297804a
@ -55,6 +55,13 @@ static int control(priv_t *priv, int cmd, void *arg)
|
||||
case TVI_CONTROL_VID_GET_FORMAT:
|
||||
(int)*(void **)arg = IMGFMT_YV12;
|
||||
return(TVI_CONTROL_TRUE);
|
||||
case TVI_CONTROL_VID_SET_FORMAT:
|
||||
{
|
||||
int req_fmt = (int)*(void **)arg;
|
||||
if (req_fmt != IMGFMT_YV12)
|
||||
return(TVI_CONTROL_FALSE);
|
||||
return(TVI_CONTROL_TRUE);
|
||||
}
|
||||
case TVI_CONTROL_VID_SET_WIDTH:
|
||||
priv->width = (int)*(void **)arg;
|
||||
return(TVI_CONTROL_TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user