Commit 51c5f44b authored by Ziqing Hui's avatar Ziqing Hui Committed by Alexandre Julliard

winegstreamer: Implement Discontinuity for WMV decoder DMO.

parent 2a83ef07
...@@ -5596,13 +5596,10 @@ static void test_wmv_decoder_media_object(void) ...@@ -5596,13 +5596,10 @@ static void test_wmv_decoder_media_object(void)
/* Test Discontinuity. */ /* Test Discontinuity. */
hr = IMediaObject_Discontinuity(media_object, 0xdeadbeef); hr = IMediaObject_Discontinuity(media_object, 0xdeadbeef);
todo_wine
ok(hr == DMO_E_INVALIDSTREAMINDEX, "Discontinuity returned %#lx.\n", hr); ok(hr == DMO_E_INVALIDSTREAMINDEX, "Discontinuity returned %#lx.\n", hr);
hr = IMediaObject_Discontinuity(media_object, 0); hr = IMediaObject_Discontinuity(media_object, 0);
todo_wine
ok(hr == S_OK, "Discontinuity returned %#lx.\n", hr); ok(hr == S_OK, "Discontinuity returned %#lx.\n", hr);
hr = IMediaObject_Discontinuity(media_object, 0); hr = IMediaObject_Discontinuity(media_object, 0);
todo_wine
ok(hr == S_OK, "Discontinuity returned %#lx.\n", hr); ok(hr == S_OK, "Discontinuity returned %#lx.\n", hr);
hr = IMediaObject_GetInputStatus(media_object, 0, &status); hr = IMediaObject_GetInputStatus(media_object, 0, &status);
ok(hr == S_OK, "GetInputStatus returned %#lx.\n", hr); ok(hr == S_OK, "GetInputStatus returned %#lx.\n", hr);
......
...@@ -662,8 +662,12 @@ static HRESULT WINAPI media_object_Flush(IMediaObject *iface) ...@@ -662,8 +662,12 @@ static HRESULT WINAPI media_object_Flush(IMediaObject *iface)
static HRESULT WINAPI media_object_Discontinuity(IMediaObject *iface, DWORD index) static HRESULT WINAPI media_object_Discontinuity(IMediaObject *iface, DWORD index)
{ {
FIXME("iface %p, index %lu stub!\n", iface, index); TRACE("iface %p, index %lu.\n", iface, index);
return E_NOTIMPL;
if (index > 0)
return DMO_E_INVALIDSTREAMINDEX;
return S_OK;
} }
static HRESULT WINAPI media_object_AllocateStreamingResources(IMediaObject *iface) static HRESULT WINAPI media_object_AllocateStreamingResources(IMediaObject *iface)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment