From 02159c2be1ffccea91dc24f43f60a9e3afeb7459 Mon Sep 17 00:00:00 2001 From: voroshil Date: Wed, 21 Nov 2007 03:49:23 +0000 Subject: [PATCH] Sizes of arpmt and arStreamCaps must be equal. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25124 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/tvi_dshow.c | 3 +++ 1 file changed, 3 insertions(+) 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; }