Commit ee59aba2 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

winepulse: Adapt "is_started_params" struct to mmdevapi's.

parent aef3a3b3
......@@ -2021,7 +2021,7 @@ static HRESULT WINAPI AudioSessionControl_GetState(IAudioSessionControl2 *iface,
params.stream = client->pulse_stream;
pulse_call(is_started, &params);
if (params.started) {
if (params.result == S_OK) {
*state = AudioSessionStateActive;
goto out;
}
......
......@@ -2258,7 +2258,7 @@ static NTSTATUS pulse_is_started(void *args)
struct pulse_stream *stream = handle_get_stream(params->stream);
pulse_lock();
params->started = pulse_stream_valid(stream) && stream->started;
params->result = pulse_stream_valid(stream) && stream->started ? S_OK : S_FALSE;
pulse_unlock();
return STATUS_SUCCESS;
......
......@@ -214,7 +214,7 @@ struct test_connect_params
struct is_started_params
{
stream_handle stream;
BOOL started;
HRESULT result;
};
struct get_prop_value_params
......
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