[MPlayer-cvslog] r25110 - trunk/stream/tvi_dshow.c

voroshil subversion at mplayerhq.hu
Mon Nov 19 20:24:22 CET 2007


Author: voroshil
Date: Mon Nov 19 20:24:21 2007
New Revision: 25110

Log:
Add capture filter's pointer to vbi chain structure too.


Modified:
   trunk/stream/tvi_dshow.c

Modified: trunk/stream/tvi_dshow.c
==============================================================================
--- trunk/stream/tvi_dshow.c	(original)
+++ trunk/stream/tvi_dshow.c	Mon Nov 19 20:24:21 2007
@@ -2673,6 +2673,9 @@ static int init(priv_t * priv)
         } else
         	hr = OLE_QUERYINTERFACE(priv->chains[0]->pCaptureFilter, IID_IBaseFilter, priv->chains[1]->pCaptureFilter);
 
+ 	/* increase refrence counter for capture filter ad store pointer into vbi chain structure too */
+      	hr = OLE_QUERYINTERFACE(priv->chains[0]->pCaptureFilter, IID_IBaseFilter, priv->chains[2]->pCaptureFilter);
+
         hr = OLE_QUERYINTERFACE(priv->chains[0]->pCaptureFilter, IID_IAMVideoProcAmp,priv->pVideoProcAmp);
         if (FAILED(hr) && hr != E_NOINTERFACE)
             mp_msg(MSGT_TV, MSGL_DBG2, "tvi_dshow: Get IID_IAMVideoProcAmp failed (0x%x).\n", (unsigned int)hr);



More information about the MPlayer-cvslog mailing list