Skip to content

Commit

Permalink
Remove #if 1
Browse files Browse the repository at this point in the history
  • Loading branch information
jp9000 committed Sep 17, 2014
1 parent 71c5848 commit d95c63e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions DShowPlugin/DeviceSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -753,17 +753,15 @@ bool DeviceSource::LoadFilters()
{
IPin* audioRendererPin = NULL;

#if 1 // FMB NOTE: Connect with first (= the only) pin of audio renderer
// FMB NOTE: Connect with first (= the only) pin of audio renderer
IEnumPins* pIEnum = NULL;
if (SUCCEEDED(err = audioFilter->EnumPins(&pIEnum)))
{
IPin* pIPin = NULL;
pIEnum->Next(1, &audioRendererPin, NULL);
SafeRelease(pIEnum);
}
#else
audioFilter->FindPin(L"Audio Input pin (rendered)", &audioRendererPin);
#endif

if (audioRendererPin)
{
bConnected = SUCCEEDED(err = graph->ConnectDirect(audioPin, audioRendererPin, nullptr));
Expand Down

0 comments on commit d95c63e

Please sign in to comment.