From a516b405d8647b625c336b6f5d2a439a4913b5fc Mon Sep 17 00:00:00 2001 From: voroshil Date: Sun, 18 Nov 2007 11:36:57 +0000 Subject: 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25095 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_dshow.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stream') diff --git a/stream/tvi_dshow.c b/stream/tvi_dshow.c index 948dc616a9..7ed2fa3547 100644 --- a/stream/tvi_dshow.c +++ b/stream/tvi_dshow.c @@ -3131,6 +3131,11 @@ static int control(priv_t * priv, int cmd, void *arg) { 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; -- cgit v1.2.3