mirror of
https://github.com/mpv-player/mpv
synced 2025-02-18 13:47:04 +00:00
specify field mode when setting image height
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12211 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a54647c14f
commit
11e4e9d7c4
@ -575,6 +575,7 @@ static int control(priv_t *priv, int cmd, void *arg)
|
||||
case TVI_CONTROL_VID_SET_HEIGHT:
|
||||
if (getfmt(priv) < 0) return TVI_CONTROL_FALSE;
|
||||
priv->format.fmt.pix.height = *(int *)arg;
|
||||
priv->format.fmt.pix.field = V4L2_FIELD_ANY;
|
||||
mp_msg(MSGT_TV, MSGL_V, "%s: set height: %d\n", info.short_name,
|
||||
*(int *)arg);
|
||||
if (ioctl(priv->video_fd, VIDIOC_S_FMT, &priv->format) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user