mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
take into account that VIDIOC_S_FMT might return updated parameters
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16187 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
40e196f4a6
commit
94ea9449cc
@ -590,6 +590,9 @@ static int control(priv_t *priv, int cmd, void *arg)
|
||||
info.short_name, strerror(errno));
|
||||
return TVI_CONTROL_FALSE;
|
||||
}
|
||||
/* according to the v4l2 specs VIDIOC_S_FMT should not fail, inflexible drivers
|
||||
might even always return the default parameters -> update the format here*/
|
||||
priv->mp_format = fcc_vl2mp(priv->format.fmt.pix.pixelformat);
|
||||
return TVI_CONTROL_TRUE;
|
||||
case TVI_CONTROL_VID_GET_WIDTH:
|
||||
if (getfmt(priv) < 0) return TVI_CONTROL_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user