From b157969d49bd81d23b542b19d55a8c1f8bd004d8 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Mon, 16 Jun 2008 17:27:09 -0700 Subject: [PATCH] quartz: Only enumerate renderers if bRender is set in filtermapper. --- dlls/quartz/filtermapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c index eeba0b13b33..b54ccea6285 100644 --- a/dlls/quartz/filtermapper.c +++ b/dlls/quartz/filtermapper.c @@ -1071,7 +1071,7 @@ static HRESULT WINAPI FilterMapper2_EnumMatchingFilters( const REGFILTERPINS2 * rfp2 = rf2.u.s1.rgPins2 + i; bInputMatch = bInputMatch || (!(rfp2->dwFlags & REG_PINFLAG_B_OUTPUT) && - (!bRender || (rfp2->dwFlags & REG_PINFLAG_B_RENDERER)) && + (!bRender == !(rfp2->dwFlags & REG_PINFLAG_B_RENDERER)) && MatchTypes(bExactMatch, rfp2->nMediaTypes, rfp2->lpMediaType, cInputTypes, pInputTypes)); bOutputMatch = bOutputMatch || ((rfp2->dwFlags & REG_PINFLAG_B_OUTPUT) && MatchTypes(bExactMatch, rfp2->nMediaTypes, rfp2->lpMediaType, cOutputTypes, pOutputTypes)); -- 2.11.4.GIT