/*****************************************************************************
* Preamble
*****************************************************************************/
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
#include <vlc/vlc.h>
#include <vlc_vout.h>
if( pXbar->QueryInterface(IID_IBaseFilter, (void **)&pFilter) == S_OK )
{
- if( SUCCEEDED(pFilter->EnumPins(&pins)) )
+ if( SUCCEEDED(pFilter->EnumPins(&pins)) )
{
LONG i = 0;
- while( pins->Next(1, &pP, &n) == S_OK )
+ while( pins->Next(1, &pP, &n) == S_OK )
{
pP->Release();
- if( i == TrueIndex )
+ if( i == TrueIndex )
{
*ppPin = pP;
break;
pFilter->Release();
}
- return *ppPin ? S_OK : E_FAIL;
+ return *ppPin ? S_OK : E_FAIL;
}
/*****************************************************************************
pFilter->Release();
}
- return fOK ? S_OK : E_FAIL;
+ return fOK ? S_OK : E_FAIL;
}
/*****************************************************************************
{
// remember connector type
physicalType = inputPinPhysicalType;
-
+
msg_Dbg( p_this, "found existing route for output %ld (type %ld) to input %ld (type %ld)",
outputPinIndex, outputPinPhysicalType, inputPinIndex,
inputPinPhysicalType );
-
+
// fall through to for loop, note 'inputPinIndex' is set to the pin we are looking for
// hence, loop iteration should not wind back
// reset to first pin for complete loop iteration
inputPinIndex = 0;
}
- }
-
+ }
+
//
// for all input pins
//
// Can we route it?
if( FAILED(pXbar->CanRoute(outputPinIndex, inputPinIndex)) ) continue;
-
-
+
+
IPin *pPin;
if( FAILED(GetCrossbarIPinAtIndex( pXbar, inputPinIndex,
TRUE, &pPin)) ) continue;