mirror of
https://github.com/mpv-player/mpv
synced 2025-04-10 03:31:32 +00:00
Remove unused function, fixes the warning:
stream/tvi_dshow.c:1311: warning: 'reconnect_pins' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27758 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c8808af5a0
commit
bc7cf2efd8
@ -1298,52 +1298,6 @@ static void get_capabilities(priv_t * priv)
|
|||||||
*
|
*
|
||||||
*---------------------------------------------------------------------------------------
|
*---------------------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
/**
|
|
||||||
* \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
|
* \brief building in graph audio/video capture chain
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user