quartz/memallocator: Return S_OK when clearing the media type.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f1c7492394
commit
838f68341f
|
@ -686,7 +686,7 @@ static HRESULT WINAPI StdMediaSample2_SetMediaType(IMediaSample2 * iface, AM_MED
|
|||
This->props.pMediaType = NULL;
|
||||
}
|
||||
if (!pMediaType)
|
||||
return S_FALSE;
|
||||
return S_OK;
|
||||
if (!(This->props.pMediaType = CoTaskMemAlloc(sizeof(AM_MEDIA_TYPE))))
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
|
|
|
@ -487,7 +487,7 @@ static void test_sample_properties(void)
|
|||
ok(!mt, "Got media type %p.\n", mt);
|
||||
|
||||
hr = IMediaSample_SetMediaType(sample, NULL);
|
||||
todo_wine ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
||||
mt = (AM_MEDIA_TYPE *)0xdeadbeef;
|
||||
hr = IMediaSample_GetMediaType(sample, &mt);
|
||||
|
@ -513,7 +513,7 @@ static void test_sample_properties(void)
|
|||
ok(!memcmp(props.pMediaType, &expect_mt, sizeof(AM_MEDIA_TYPE)), "Media types didn't match.\n");
|
||||
|
||||
hr = IMediaSample_SetMediaType(sample, NULL);
|
||||
todo_wine ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
||||
mt = (AM_MEDIA_TYPE *)0xdeadbeef;
|
||||
hr = IMediaSample_GetMediaType(sample, &mt);
|
||||
|
|
Loading…
Reference in New Issue