diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-19 19:24:21 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-19 19:24:21 +0000 |
commit | 2390359b258ff91e38f2bc93fec2f84f7d8ae7a1 (patch) | |
tree | 11983cded896cb22933bea0d2d31f85e1931a4fc /stream | |
parent | 8e2f39307a8d5155bef1f7ee0fd4e02aea66004f (diff) |
Add capture filter's pointer to vbi chain structure too.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25110 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/tvi_dshow.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/tvi_dshow.c b/stream/tvi_dshow.c index a85ecde048..d54bc566d1 100644 --- a/stream/tvi_dshow.c +++ b/stream/tvi_dshow.c @@ -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); |