mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
mfplat: Set capabilities flags for IStream-based bytestream object.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e8c4c1db0c
commit
e3c76d773b
2 changed files with 1 additions and 2 deletions
|
@ -2582,6 +2582,7 @@ HRESULT WINAPI MFCreateMFByteStreamOnStream(IStream *stream, IMFByteStream **byt
|
|||
IStream_AddRef(object->stream);
|
||||
position.QuadPart = 0;
|
||||
IStream_Seek(object->stream, position, STREAM_SEEK_SET, NULL);
|
||||
object->capabilities = MFBYTESTREAM_IS_READABLE | MFBYTESTREAM_IS_SEEKABLE;
|
||||
|
||||
*bytestream = &object->IMFByteStream_iface;
|
||||
|
||||
|
|
|
@ -1091,7 +1091,6 @@ static void test_MFCreateMFByteStreamOnStream(void)
|
|||
|
||||
hr = IMFByteStream_GetCapabilities(bytestream, &caps);
|
||||
ok(hr == S_OK, "Failed to get stream capabilities, hr %#x.\n", hr);
|
||||
todo_wine
|
||||
ok(caps == (MFBYTESTREAM_IS_READABLE | MFBYTESTREAM_IS_SEEKABLE), "Unexpected caps %#x.\n", caps);
|
||||
|
||||
hr = IMFByteStream_Close(bytestream);
|
||||
|
@ -1102,7 +1101,6 @@ todo_wine
|
|||
|
||||
hr = IMFByteStream_GetCapabilities(bytestream, &caps);
|
||||
ok(hr == S_OK, "Failed to get stream capabilities, hr %#x.\n", hr);
|
||||
todo_wine
|
||||
ok(caps == (MFBYTESTREAM_IS_READABLE | MFBYTESTREAM_IS_SEEKABLE), "Unexpected caps %#x.\n", caps);
|
||||
|
||||
caps = 0;
|
||||
|
|
Loading…
Reference in a new issue