[PATCH 4/7] winegstreamer: Return S_OK from IWMSyncReader::SetOutputSetting(L"VideoSampleDurations").
Zebediah Figura
zfigura at codeweavers.com
Tue Nov 2 00:13:01 CDT 2021
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/winegstreamer/wm_syncreader.c | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/dlls/winegstreamer/wm_syncreader.c b/dlls/winegstreamer/wm_syncreader.c
index 1f5827cf244..2c65f652cdb 100644
--- a/dlls/winegstreamer/wm_syncreader.c
+++ b/dlls/winegstreamer/wm_syncreader.c
@@ -249,12 +249,24 @@ static HRESULT WINAPI WMSyncReader_SetOutputProps(IWMSyncReader2 *iface, DWORD o
return wm_reader_set_output_props(&reader->reader, output, props);
}
-static HRESULT WINAPI WMSyncReader_SetOutputSetting(IWMSyncReader2 *iface, DWORD output_num, const WCHAR *name,
- WMT_ATTR_DATATYPE type, const BYTE *value, WORD length)
+static HRESULT WINAPI WMSyncReader_SetOutputSetting(IWMSyncReader2 *iface, DWORD output,
+ const WCHAR *name, WMT_ATTR_DATATYPE type, const BYTE *value, WORD size)
{
- struct sync_reader *This = impl_from_IWMSyncReader2(iface);
- FIXME("(%p)->(%d %s %d %p %d): stub!\n", This, output_num, debugstr_w(name), type, value, length);
- return E_NOTIMPL;
+ struct sync_reader *reader = impl_from_IWMSyncReader2(iface);
+
+ TRACE("reader %p, output %u, name %s, type %#x, value %p, size %u.\n",
+ reader, output, debugstr_w(name), type, value, size);
+
+ if (!wcscmp(name, L"VideoSampleDurations"))
+ {
+ FIXME("Ignoring VideoSampleDurations setting.\n");
+ return S_OK;
+ }
+ else
+ {
+ FIXME("Unknown setting %s; returning E_NOTIMPL.\n", debugstr_w(name));
+ return E_NOTIMPL;
+ }
}
static HRESULT WINAPI WMSyncReader_SetRange(IWMSyncReader2 *iface, QWORD start, LONGLONG duration)
--
2.33.0
More information about the wine-devel
mailing list