Mercurial > mplayer.hg
changeset 25066:89c42f6f6e89
(cosmetics) Indentation fix of previous commit.
author | voroshil |
---|---|
date | Sun, 18 Nov 2007 11:15:14 +0000 |
parents | 54dba785e683 |
children | 5abe2c29b7d8 |
files | stream/tvi_dshow.c |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/tvi_dshow.c Sun Nov 18 11:13:28 2007 +0000 +++ b/stream/tvi_dshow.c Sun Nov 18 11:15:14 2007 +0000 @@ -1393,17 +1393,17 @@ 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);