From d95c63ec0b586a446649d11c2126457b5054f620 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 17 Sep 2014 12:48:37 -0700 Subject: [PATCH] Remove #if 1 --- DShowPlugin/DeviceSource.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/DShowPlugin/DeviceSource.cpp b/DShowPlugin/DeviceSource.cpp index 693442acc..63f7c11ae 100644 --- a/DShowPlugin/DeviceSource.cpp +++ b/DShowPlugin/DeviceSource.cpp @@ -753,7 +753,7 @@ 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))) { @@ -761,9 +761,7 @@ bool DeviceSource::LoadFilters() 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));