mirror of
https://github.com/mpv-player/mpv
synced 2024-10-30 04:46:41 +01:00
Fix crash when pin connection fails.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25088 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0da22f962f
commit
78a0719de9
@ -1320,6 +1320,7 @@ static HRESULT build_sub_graph(priv_t * priv, IBaseFilter * pCaptureFilter,
|
||||
ISampleGrabber *pSG = NULL;
|
||||
|
||||
hr=S_OK;
|
||||
CopyMediaType(&conn_mt, pmt);
|
||||
do{
|
||||
hr = OLE_CALL_ARGS(priv->pBuilder, FindPin,
|
||||
(IUnknown *) pCaptureFilter,
|
||||
@ -1402,7 +1403,6 @@ static HRESULT build_sub_graph(priv_t * priv, IBaseFilter * pCaptureFilter,
|
||||
if(FAILED(hr))
|
||||
{
|
||||
mp_msg(MSGT_TV, MSGL_WARN, MSGTR_TVI_DS_GetActualMediatypeFailed, (unsigned int)hr);
|
||||
CopyMediaType(&conn_mt, pmt);
|
||||
}
|
||||
|
||||
if(priv->tv_param->hidden_video_renderer){
|
||||
|
Loading…
Reference in New Issue
Block a user