summaryrefslogtreecommitdiffstats
path: root/stream/tvi_dshow.c
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-18 11:36:57 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-18 11:36:57 +0000
commita516b405d8647b625c336b6f5d2a439a4913b5fc (patch)
treead52efcbec7919b9df4959da1283a8efd87b44f9 /stream/tvi_dshow.c
parent8b33e6547338773745379cae660ac9673f47f82e (diff)
downloadmpv-a516b405d8647b625c336b6f5d2a439a4913b5fc.tar.bz2
mpv-a516b405d8647b625c336b6f5d2a439a4913b5fc.tar.xz
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
Diffstat (limited to 'stream/tvi_dshow.c')
-rw-r--r--stream/tvi_dshow.c5
1 files changed, 5 insertions, 0 deletions
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;