Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com>
---
This test is using empty data stream and fails differently depending on library version.
dlls/mfreadwrite/tests/mfplat.c | 45 +++------------------------------
1 file changed, 3 insertions(+), 42 deletions(-)
diff --git a/dlls/mfreadwrite/tests/mfplat.c b/dlls/mfreadwrite/tests/mfplat.c
index 16fa8223bf..074c403e49 100644
--- a/dlls/mfreadwrite/tests/mfplat.c
+++ b/dlls/mfreadwrite/tests/mfplat.c
@@ -79,47 +79,6 @@ static IMFByteStream *get_resource_stream(const char *name)
return bytestream;
}
-static void test_MFCreateSourceReaderFromByteStream(void)
-{
- static const WCHAR audio[] = {'A','u','d','i','o',0};
- IMFSourceReader *reader = NULL;
- IMFAttributes *attributes;
- IMFByteStream *bytestream = NULL;
- IStream *stream = NULL;
- HRESULT hr;
-
- if(!pMFCreateMFByteStreamOnStream)
- {
- win_skip("MFCreateMFByteStreamOnStream() not found\n");
- return;
- }
-
- hr = MFCreateAttributes( &attributes, 3 );
- ok(hr == S_OK, "got 0x%08x\n", hr);
-
- hr = IMFAttributes_SetString(attributes, &MF_READWRITE_MMCSS_CLASS_AUDIO, audio);
- ok(hr == S_OK, "Failed to set string value, hr %#x.\n", hr);
-
- hr = IMFAttributes_SetUINT32(attributes, &MF_READWRITE_MMCSS_PRIORITY_AUDIO, 0);
- ok(hr == S_OK, "Failed to set attribute, hr %#x.\n", hr);
-
- hr = CreateStreamOnHGlobal(NULL, TRUE, &stream);
- ok(hr == S_OK, "got 0x%08x\n", hr);
-
- hr = pMFCreateMFByteStreamOnStream(stream, &bytestream);
- ok(hr == S_OK, "got 0x%08x\n", hr);
-
- hr = MFCreateSourceReaderFromByteStream(bytestream, attributes, &reader);
-todo_wine
- ok(hr == S_OK || hr == MF_E_UNSUPPORTED_BYTESTREAM_TYPE, "got 0x%08x\n", hr);
-
- IStream_Release(stream);
- IMFByteStream_Release(bytestream);
- IMFAttributes_Release(attributes);
- if (reader)
- IMFSourceReader_Release(reader);
-}
-
static void test_factory(void)
{
IMFReadWriteClassFactory *factory, *factory2;
@@ -237,7 +196,10 @@ static void test_source_reader(void)
HRESULT hr;
if (!pMFCreateMFByteStreamOnStream)
+ {
+ win_skip("MFCreateMFByteStreamOnStream() not found\n");
return;
+ }
stream = get_resource_stream("test.wav");
@@ -379,7 +341,6 @@ START_TEST(mfplat)
init_functions();
- test_MFCreateSourceReaderFromByteStream();
test_factory();
test_source_reader();
--
2.20.1