Mercurial > mplayer.hg
changeset 25082:b63b4b599cbe
Add capture filter's pointer to vbi chain structure too.
author | voroshil |
---|---|
date | Mon, 19 Nov 2007 19:24:21 +0000 |
parents | ceaf17d27966 |
children | b0f91db30cb2 |
files | stream/tvi_dshow.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/tvi_dshow.c Mon Nov 19 19:15:36 2007 +0000 +++ b/stream/tvi_dshow.c Mon Nov 19 19:24:21 2007 +0000 @@ -2673,6 +2673,9 @@ } 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);