Commit 44cd11ef authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

qcap/smartteefilter: Return VFW_S_CANT_CUE from GetState() if paused.

parent 44c0e691
......@@ -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);
......
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