Nikolay Sivov : evr/tests: Add a test for MF_SA_REQUIRED_SAMPLE_COUNT.

Alexandre Julliard julliard at winehq.org
Tue Oct 13 15:42:04 CDT 2020


Module: wine
Branch: master
Commit: 25872a51727d893296633c3734447304c566cc2f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=25872a51727d893296633c3734447304c566cc2f

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Oct 13 15:26:46 2020 +0300

evr/tests: Add a test for MF_SA_REQUIRED_SAMPLE_COUNT.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/evr/tests/evr.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/dlls/evr/tests/evr.c b/dlls/evr/tests/evr.c
index 7a51b3c17d..72642110a7 100644
--- a/dlls/evr/tests/evr.c
+++ b/dlls/evr/tests/evr.c
@@ -658,6 +658,12 @@ todo_wine
     attributes = NULL;
     hr = IMFTransform_GetInputStreamAttributes(transform, 0, &attributes);
     ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
+    hr = IMFAttributes_GetCount(attributes, &count);
+    ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
+    ok(count == 1, "Unexpected count %u.\n", count);
+    hr = IMFAttributes_GetUINT32(attributes, &MF_SA_REQUIRED_SAMPLE_COUNT, &count);
+    ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
+    ok(count == 1, "Unexpected count %u.\n", count);
     ok(!!attributes, "Unexpected attributes.\n");
 
     attributes2 = NULL;




More information about the wine-cvs mailing list