Rémi Bernon : qedit: Use the right SampleGrabber pin names.
Alexandre Julliard
julliard at winehq.org
Mon Mar 28 15:53:41 CDT 2022
Module: wine
Branch: master
Commit: bd18fa2099d564b6a28672f06978e3bfe0fd74cc
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bd18fa2099d564b6a28672f06978e3bfe0fd74cc
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Fri Mar 25 09:42:04 2022 +0100
qedit: Use the right SampleGrabber pin names.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/qedit/samplegrabber.c | 3 +++
dlls/qedit/tests/samplegrabber.c | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/qedit/samplegrabber.c b/dlls/qedit/samplegrabber.c
index a89229c4447..9b9780e564a 100644
--- a/dlls/qedit/samplegrabber.c
+++ b/dlls/qedit/samplegrabber.c
@@ -652,8 +652,11 @@ HRESULT sample_grabber_create(IUnknown *outer, IUnknown **out)
object->IMemInputPin_iface.lpVtbl = &IMemInputPin_VTable;
strmbase_sink_init(&object->sink, &object->filter, L"In", &sink_ops, NULL);
+ wcscpy(object->sink.pin.name, L"Input");
strmbase_source_init(&object->source, &object->filter, L"Out", &source_ops);
+ wcscpy(object->source.pin.name, L"Output");
+
strmbase_passthrough_init(&object->passthrough, (IUnknown *)&object->source.pin.IPin_iface);
ISeekingPassThru_Init(&object->passthrough.ISeekingPassThru_iface, FALSE,
&object->sink.pin.IPin_iface);
diff --git a/dlls/qedit/tests/samplegrabber.c b/dlls/qedit/tests/samplegrabber.c
index 32fcfc1eb2b..9daa67355b2 100644
--- a/dlls/qedit/tests/samplegrabber.c
+++ b/dlls/qedit/tests/samplegrabber.c
@@ -312,7 +312,7 @@ static void test_pin_info(void)
ok(hr == S_OK, "Got hr %#lx.\n", hr);
ok(info.pFilter == filter, "Expected filter %p, got %p.\n", filter, info.pFilter);
ok(info.dir == PINDIR_INPUT, "Got direction %d.\n", info.dir);
- todo_wine ok(!wcscmp(info.achName, L"Input"), "Got name %s.\n", wine_dbgstr_w(info.achName));
+ ok(!wcscmp(info.achName, L"Input"), "Got name %s.\n", wine_dbgstr_w(info.achName));
IBaseFilter_Release(info.pFilter);
hr = IPin_QueryDirection(pin, &dir);
@@ -336,7 +336,7 @@ static void test_pin_info(void)
ok(hr == S_OK, "Got hr %#lx.\n", hr);
ok(info.pFilter == filter, "Expected filter %p, got %p.\n", filter, info.pFilter);
ok(info.dir == PINDIR_OUTPUT, "Got direction %d.\n", info.dir);
- todo_wine ok(!wcscmp(info.achName, L"Output"), "Got name %s.\n", wine_dbgstr_w(info.achName));
+ ok(!wcscmp(info.achName, L"Output"), "Got name %s.\n", wine_dbgstr_w(info.achName));
IBaseFilter_Release(info.pFilter);
hr = IPin_QueryDirection(pin, &dir);
More information about the wine-cvs
mailing list