diff stream/tvi_dshow.c @ 25096:554985a6bbb2

Sizes of arpmt and arStreamCaps must be equal.
author voroshil
date Wed, 21 Nov 2007 03:49:23 +0000
parents e27cb70d2302
children 472629081e38
line wrap: on
line diff
--- a/stream/tvi_dshow.c	Wed Nov 21 02:41:25 2007 +0000
+++ b/stream/tvi_dshow.c	Wed Nov 21 03:49:23 2007 +0000
@@ -3158,6 +3158,9 @@
 		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;
 	    }