changeset 25096:554985a6bbb2

Sizes of arpmt and arStreamCaps must be equal.
author voroshil
date Wed, 21 Nov 2007 03:49:23 +0000
parents b97d8dedb68b
children 7a6a7f47109f
files stream/tvi_dshow.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;
 	    }