summaryrefslogtreecommitdiffstats
path: root/stream/tvi_dshow.c
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-21 03:49:23 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-21 03:49:23 +0000
commit02159c2be1ffccea91dc24f43f60a9e3afeb7459 (patch)
tree171697b90f8c39eb2d43b54ffd25e4084ed19faa /stream/tvi_dshow.c
parentdc232a3d79887b183c8a5cd7bd2ee770b665e58d (diff)
downloadmpv-02159c2be1ffccea91dc24f43f60a9e3afeb7459.tar.bz2
mpv-02159c2be1ffccea91dc24f43f60a9e3afeb7459.tar.xz
Sizes of arpmt and arStreamCaps must be equal.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25124 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tvi_dshow.c')
-rw-r--r--stream/tvi_dshow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/tvi_dshow.c b/stream/tvi_dshow.c
index e310064fb8..eabc760471 100644
--- a/stream/tvi_dshow.c
+++ b/stream/tvi_dshow.c
@@ -3158,6 +3158,9 @@ static int control(priv_t * priv, int cmd, void *arg)
priv->chains[0]->arpmt[i+1] = NULL;
priv->chains[0]->arpmt[i] = pmt;
+ priv->chains[0]->arStreamCaps=realloc(priv->chains[0]->arCtreamCaps, (i+2)*sizeof(void*));
+ priv->chains[0]->arpmt[i+1] = NULL;
+
result = TVI_CONTROL_FALSE;
}