Skip to content

Commit

Permalink
quartz: Use the right AVIDec pin names.
Browse files Browse the repository at this point in the history
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
  • Loading branch information
rbernon authored and julliard committed Mar 28, 2022
1 parent 7348ac6 commit 9e32d45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions dlls/quartz/avidec.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,11 @@ HRESULT avi_dec_create(IUnknown *outer, IUnknown **out)
strmbase_filter_init(&object->filter, outer, &CLSID_AVIDec, &filter_ops);

strmbase_sink_init(&object->sink, &object->filter, L"In", &sink_ops, NULL);
wcscpy(object->sink.pin.name, L"XForm In");

strmbase_source_init(&object->source, &object->filter, L"Out", &source_ops);
wcscpy(object->source.pin.name, L"XForm Out");

object->source_IQualityControl_iface.lpVtbl = &source_qc_vtbl;
strmbase_passthrough_init(&object->passthrough, (IUnknown *)&object->source.pin.IPin_iface);
ISeekingPassThru_Init(&object->passthrough.ISeekingPassThru_iface, FALSE,
Expand Down
4 changes: 2 additions & 2 deletions dlls/quartz/tests/avidec.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,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"XForm In"), "Got name %s.\n", wine_dbgstr_w(info.achName));
ok(!wcscmp(info.achName, L"XForm In"), "Got name %s.\n", wine_dbgstr_w(info.achName));
ref = get_refcount(filter);
ok(ref == 3, "Got unexpected refcount %ld.\n", ref);
ref = get_refcount(pin);
Expand Down Expand Up @@ -552,7 +552,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"XForm Out"), "Got name %s.\n", wine_dbgstr_w(info.achName));
ok(!wcscmp(info.achName, L"XForm Out"), "Got name %s.\n", wine_dbgstr_w(info.achName));
IBaseFilter_Release(info.pFilter);

hr = IPin_QueryDirection(pin, &dir);
Expand Down

0 comments on commit 9e32d45

Please sign in to comment.