mirror of
https://github.com/mpv-player/mpv
synced 2024-12-16 20:05:07 +00:00
(cosmetics) Indentation fix of previous commit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25094 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
fa18524d05
commit
8b33e65473
@ -1393,17 +1393,17 @@ static HRESULT build_sub_graph(priv_t * priv, IBaseFilter * pCaptureFilter,
|
||||
for(nFormatProbed=0; arpmt[nFormatProbed]; nFormatProbed++)
|
||||
{
|
||||
DisplayMediaType("Probing format", arpmt[nFormatProbed]);
|
||||
hr = OLE_CALL_ARGS(pSG, SetMediaType, arpmt[nFormatProbed]); //set desired mediatype
|
||||
if(FAILED(hr)){
|
||||
mp_msg(MSGT_TV,MSGL_DBG2,"tvi_dshow: SetMediaType(pSG) call failed. Error:0x%x\n", (unsigned int)hr);
|
||||
continue;
|
||||
}
|
||||
/* connecting filters together: VideoCapture --> SampleGrabber */
|
||||
hr = OLE_CALL_ARGS(priv->pGraph, Connect, pCapturePin, pSGIn);
|
||||
if(FAILED(hr)){
|
||||
mp_msg(MSGT_TV,MSGL_DBG2,"tvi_dshow: Unable to create pCapturePin<->pSGIn connection. Error:0x%x\n", (unsigned int)hr);
|
||||
continue;
|
||||
}
|
||||
hr = OLE_CALL_ARGS(pSG, SetMediaType, arpmt[nFormatProbed]); //set desired mediatype
|
||||
if(FAILED(hr)){
|
||||
mp_msg(MSGT_TV,MSGL_DBG2,"tvi_dshow: SetMediaType(pSG) call failed. Error:0x%x\n", (unsigned int)hr);
|
||||
continue;
|
||||
}
|
||||
/* connecting filters together: VideoCapture --> SampleGrabber */
|
||||
hr = OLE_CALL_ARGS(priv->pGraph, Connect, pCapturePin, pSGIn);
|
||||
if(FAILED(hr)){
|
||||
mp_msg(MSGT_TV,MSGL_DBG2,"tvi_dshow: Unable to create pCapturePin<->pSGIn connection. Error:0x%x\n", (unsigned int)hr);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
OLE_RELEASE_SAFE(pSG);
|
||||
|
Loading…
Reference in New Issue
Block a user