summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}