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:
henry 2004-04-15 07:19:50 +00:00
parent a54647c14f
commit 11e4e9d7c4
1 changed files with 1 additions and 0 deletions

View File

@ -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) {