qcap/smartteefilter: Return VFW_S_CANT_CUE from GetState() if paused.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
44c0e69137
commit
44cd11ef4a
|
@ -62,10 +62,16 @@ static void smart_tee_destroy(struct strmbase_filter *iface)
|
|||
CoTaskMemFree(filter);
|
||||
}
|
||||
|
||||
static HRESULT smart_tee_wait_state(struct strmbase_filter *iface, DWORD timeout)
|
||||
{
|
||||
return iface->state == State_Paused ? VFW_S_CANT_CUE : S_OK;
|
||||
}
|
||||
|
||||
static const struct strmbase_filter_ops filter_ops =
|
||||
{
|
||||
.filter_get_pin = smart_tee_get_pin,
|
||||
.filter_destroy = smart_tee_destroy,
|
||||
.filter_wait_state = smart_tee_wait_state,
|
||||
};
|
||||
|
||||
static HRESULT sink_query_accept(struct strmbase_pin *base, const AM_MEDIA_TYPE *pmt)
|
||||
|
|
|
@ -2232,7 +2232,7 @@ static void test_unconnected_filter_state(void)
|
|||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
||||
hr = IBaseFilter_GetState(filter, 0, &state);
|
||||
todo_wine ok(hr == VFW_S_CANT_CUE, "Got hr %#x.\n", hr);
|
||||
ok(hr == VFW_S_CANT_CUE, "Got hr %#x.\n", hr);
|
||||
ok(state == State_Paused, "Got state %u.\n", state);
|
||||
|
||||
hr = IBaseFilter_Run(filter, 0);
|
||||
|
@ -2246,7 +2246,7 @@ static void test_unconnected_filter_state(void)
|
|||
ok(hr == S_OK, "Got hr %#x.\n", hr);
|
||||
|
||||
hr = IBaseFilter_GetState(filter, 0, &state);
|
||||
todo_wine ok(hr == VFW_S_CANT_CUE, "Got hr %#x.\n", hr);
|
||||
ok(hr == VFW_S_CANT_CUE, "Got hr %#x.\n", hr);
|
||||
ok(state == State_Paused, "Got state %u.\n", state);
|
||||
|
||||
hr = IBaseFilter_Stop(filter);
|
||||
|
|
Loading…
Reference in New Issue