# HG changeset patch # User voroshil # Date 1195385817 0 # Node ID 5abe2c29b7d8ab6dd3367b33efceb8a6bf5dd978 # Parent 89c42f6f6e89863844c082d94d419a799de570fa Ensure that when VID_GET_FORMAT ioctl is called, video chain in graph is ready built. Otherwise driver can return one format while graph builder will negotiate another. diff -r 89c42f6f6e89 -r 5abe2c29b7d8 stream/tvi_dshow.c --- a/stream/tvi_dshow.c Sun Nov 18 11:15:14 2007 +0000 +++ b/stream/tvi_dshow.c Sun Nov 18 11:36:57 2007 +0000 @@ -3131,6 +3131,11 @@ { if(!priv->pmtVideo) return TVI_CONTROL_FALSE; + /* + Build video chain (for video format negotiation). + If this was done before, routine will do nothing. + */ + build_video_chain(priv); DisplayMediaType("VID_GET_FORMAT", priv->pmtVideo); if (priv->fcc) { *(int *) arg = priv->fcc;