[PATCH 3/5] quartz/dsoundrender: Don't check the subtype in DSoundRender_CheckMediaType().

Zebediah Figura z.figura12 at gmail.com
Wed Jul 15 22:57:16 CDT 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/quartz/dsoundrender.c       | 3 ---
 dlls/quartz/tests/dsoundrender.c | 7 +++----
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/dlls/quartz/dsoundrender.c b/dlls/quartz/dsoundrender.c
index 8e6379da8ce..225c1e07b96 100644
--- a/dlls/quartz/dsoundrender.c
+++ b/dlls/quartz/dsoundrender.c
@@ -384,9 +384,6 @@ static HRESULT WINAPI DSoundRender_CheckMediaType(struct strmbase_renderer *ifac
     if (!IsEqualIID(&pmt->majortype, &MEDIATYPE_Audio))
         return S_FALSE;
 
-    if (!IsEqualIID(&pmt->subtype, &MEDIASUBTYPE_PCM))
-        return S_FALSE;
-
     return S_OK;
 }
 
diff --git a/dlls/quartz/tests/dsoundrender.c b/dlls/quartz/tests/dsoundrender.c
index 3add14d0437..0b45d712dc0 100644
--- a/dlls/quartz/tests/dsoundrender.c
+++ b/dlls/quartz/tests/dsoundrender.c
@@ -789,10 +789,9 @@ static void test_media_types(void)
                 expect_hr = does_dsound_support_format(&wfx);
 
                 hr = IPin_QueryAccept(pin, &req_mt);
-                todo_wine_if (expect_hr == S_OK)
-                    ok(hr == expect_hr, "Expected hr %#x, got %#x, for %d channels, %d-bit %s, %d Hz.\n",
-                            expect_hr, hr, channels, formats[i].depth,
-                            formats[i].tag == WAVE_FORMAT_PCM ? "integer" : "float", sample_rates[j]);
+                ok(hr == expect_hr, "Expected hr %#x, got %#x, for %d channels, %d-bit %s, %d Hz.\n",
+                        expect_hr, hr, channels, formats[i].depth,
+                        formats[i].tag == WAVE_FORMAT_PCM ? "integer" : "float", sample_rates[j]);
             }
         }
     }
-- 
2.27.0




More information about the wine-devel mailing list