[PATCH] quartz: small readability fix

Miklós Máté mtmkls at gmail.com
Sat Jun 10 17:22:58 CDT 2017


Now the code better reflects the intent. Also, it's not nice to depend
on enum values that are not specified in the documentation.

Signed-off-by: Miklós Máté <mtmkls at gmail.com>
---
 dlls/quartz/vmr9.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/quartz/vmr9.c b/dlls/quartz/vmr9.c
index 13f0d89d4c..d9e4f46fe0 100644
--- a/dlls/quartz/vmr9.c
+++ b/dlls/quartz/vmr9.c
@@ -383,7 +383,7 @@ static HRESULT WINAPI VMR9_CheckMediaType(BaseRenderer *iface, const AM_MEDIA_TY
         ERR("Format type %s not supported\n", debugstr_guid(&pmt->formattype));
         return S_FALSE;
     }
-    if (This->bmiheader.biCompression)
+    if (This->bmiheader.biCompression != BI_RGB)
         return S_FALSE;
     return S_OK;
 }
-- 
2.11.0




More information about the wine-patches mailing list