# HG changeset patch # User diego # Date 1223911534 0 # Node ID adccbc495cb2a1b8d7ed996b4849163b3048075d # Parent fb67a8f56bfc3aeae5781616f5953bfc646ac8cc Remove unused function, fixes the warning: stream/tvi_dshow.c:1311: warning: 'reconnect_pins' defined but not used diff -r fb67a8f56bfc -r adccbc495cb2 stream/tvi_dshow.c --- a/stream/tvi_dshow.c Mon Oct 13 15:13:40 2008 +0000 +++ b/stream/tvi_dshow.c Mon Oct 13 15:25:34 2008 +0000 @@ -1299,52 +1299,6 @@ *--------------------------------------------------------------------------------------- */ /** - * \brief routine for reconnecting two pins with new media type - * \param pGraph IGraphBuilder interface - * \param chan chain data - * \param pmt [in/out] new mediatype for pin connection - * - * \return S_OK if operation successfult, error code otherwise - * will also return media type of new connection into pmt variable - */ -static HRESULT reconnect_pins(IGraphBuilder *pGraph, chain_t *chain, AM_MEDIA_TYPE *pmt) -{ - AM_MEDIA_TYPE old_mt; - HRESULT hr; - - do { - /* save old media type for reconnection in case of error */ - hr = OLE_CALL_ARGS(chain->pCapturePin, ConnectionMediaType, &old_mt); - if(FAILED(hr)) - return hr; - - hr = OLE_CALL(chain->pCapturePin, Disconnect); - if(FAILED(hr)) - return hr; - - hr = OLE_CALL_ARGS(chain->pSG, SetMediaType, pmt); - if(FAILED(hr)) - return hr; - - hr = OLE_CALL_ARGS(pGraph, Connect, chain->pCapturePin, chain->pSGIn); - if(FAILED(hr)) - { - OLE_CALL_ARGS(chain->pSG, SetMediaType, &old_mt); - OLE_CALL_ARGS(pGraph, Connect, chain->pCapturePin, chain->pSGIn); - break; - } - hr = OLE_CALL_ARGS(chain->pCapturePin, ConnectionMediaType, &old_mt); - - hr = S_OK; - } while(0); - - FreeMediaType(pmt); - CopyMediaType(pmt, &old_mt); - FreeMediaType(&old_mt); - return hr; -} - -/** * \brief building in graph audio/video capture chain * * \param priv driver's private data