# HG changeset patch # User faust3 # Date 1123357555 0 # Node ID e861f9b7a70e3a9fc79ca0dad184aba03f2015fb # Parent 973b82bf1187c5a2133b791cad2576e1e1389668 take into account that VIDIOC_S_FMT might return updated parameters diff -r 973b82bf1187 -r e861f9b7a70e libmpdemux/tvi_v4l2.c --- a/libmpdemux/tvi_v4l2.c Sat Aug 06 18:19:58 2005 +0000 +++ b/libmpdemux/tvi_v4l2.c Sat Aug 06 19:45:55 2005 +0000 @@ -590,6 +590,9 @@ 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;