changeset 25059:501f31700e77

Prevent chains from building more than once.
author voroshil
date Sun, 18 Nov 2007 05:20:17 +0000
parents ac9507b338ac
children 96c96edb3d2f
files stream/tvi_dshow.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/tvi_dshow.c	Sun Nov 18 05:07:51 2007 +0000
+++ b/stream/tvi_dshow.c	Sun Nov 18 05:20:17 2007 +0000
@@ -2411,6 +2411,9 @@
 {
     HRESULT hr;
 
+    if(priv->v_buf)
+        return S_OK;
+
     if (priv->pVideoStreamConfig) {
 	hr = OLE_CALL_ARGS(priv->pVideoStreamConfig, SetFormat, priv->pmtVideo);
 	if (FAILED(hr)) {
@@ -2447,6 +2450,9 @@
 {
     HRESULT hr;
 
+    if(priv->a_buf)
+        return S_OK;
+
     if(priv->immediate_mode)
         return S_OK;
 
@@ -2489,6 +2495,9 @@
 #ifdef HAVE_TV_TELETEXT
     HRESULT hr;
 
+    if(priv->vbi_buf)
+        return S_OK;
+
     if(priv->tv_param->tdevice)
     {
         priv->vbi_buf=calloc(1,sizeof(grabber_ringbuffer_t));