diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-17 19:32:18 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-17 19:32:18 +0000 |
commit | e0f028b2a4142693b0a5302b41eb7fe59ddeb32e (patch) | |
tree | 26f1865b57ecd5e063dc08b5d0cdc880410c6ad0 /stream/tvi_dshow.c | |
parent | 66d7d00ea20a1a1caeaf30934d90f2beff014daf (diff) | |
download | mpv-e0f028b2a4142693b0a5302b41eb7fe59ddeb32e.tar.bz2 mpv-e0f028b2a4142693b0a5302b41eb7fe59ddeb32e.tar.xz |
Disable terminating directshow chains with NullRenderer filter,
bacause this causes jerky video.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25080 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/tvi_dshow.c')
-rw-r--r-- | stream/tvi_dshow.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/stream/tvi_dshow.c b/stream/tvi_dshow.c index 712bcfe7fb..0ab788210c 100644 --- a/stream/tvi_dshow.c +++ b/stream/tvi_dshow.c @@ -1426,6 +1426,12 @@ static HRESULT build_sub_graph(priv_t * priv, IBaseFilter * pCaptureFilter, OLE_RELEASE_SAFE(pEnum); }else { +#if 0 + /* + Code below is disabled, because terminating chain with NullRenderer leads to jerky video. + Perhaps, this happens because NullRenderer filter discards each received + frame while discarded frames causes live source filter to dramatically reduce frame rate. + */ /* adding sink for video stream */ hr = CoCreateInstance((GUID *) & CLSID_NullRenderer, NULL,CLSCTX_INPROC_SERVER, &IID_IBaseFilter,(void *) &pNR); if(FAILED(hr)){ @@ -1453,6 +1459,7 @@ static HRESULT build_sub_graph(priv_t * priv, IBaseFilter * pCaptureFilter, break; } } +#endif } hr = S_OK; |