[MPlayer-cvslog] r25087 - trunk/stream/tvi_dshow.c
voroshil
subversion at mplayerhq.hu
Sun Nov 18 06:20:18 CET 2007
Author: voroshil
Date: Sun Nov 18 06:20:17 2007
New Revision: 25087
Log:
Prevent chains from building more than once.
Modified:
trunk/stream/tvi_dshow.c
Modified: trunk/stream/tvi_dshow.c
==============================================================================
--- trunk/stream/tvi_dshow.c (original)
+++ trunk/stream/tvi_dshow.c Sun Nov 18 06:20:17 2007
@@ -2411,6 +2411,9 @@ static HRESULT build_video_chain(priv_t
{
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 @@ static HRESULT build_audio_chain(priv_t
{
HRESULT hr;
+ if(priv->a_buf)
+ return S_OK;
+
if(priv->immediate_mode)
return S_OK;
@@ -2489,6 +2495,9 @@ static HRESULT build_vbi_chain(priv_t *p
#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));
More information about the MPlayer-cvslog
mailing list