quartz: Add more tracing to state change methods.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-07-14 19:56:19 -05:00 committed by Alexandre Julliard
parent 313c27ad2a
commit 0bad952999
1 changed files with 9 additions and 0 deletions

View File

@ -1723,6 +1723,8 @@ static HRESULT WINAPI MediaControl_Run(IMediaControl *iface)
{
struct filter_graph *graph = impl_from_IMediaControl(iface);
TRACE("graph %p.\n", graph);
return IMediaFilter_Run(&graph->IMediaFilter_iface, 0);
}
@ -1730,6 +1732,8 @@ static HRESULT WINAPI MediaControl_Pause(IMediaControl *iface)
{
struct filter_graph *graph = impl_from_IMediaControl(iface);
TRACE("graph %p.\n", graph);
return IMediaFilter_Pause(&graph->IMediaFilter_iface);
}
@ -1737,6 +1741,8 @@ static HRESULT WINAPI MediaControl_Stop(IMediaControl *iface)
{
struct filter_graph *graph = impl_from_IMediaControl(iface);
TRACE("graph %p.\n", graph);
return IMediaFilter_Stop(&graph->IMediaFilter_iface);
}
@ -1744,6 +1750,8 @@ static HRESULT WINAPI MediaControl_GetState(IMediaControl *iface, LONG timeout,
{
struct filter_graph *graph = impl_from_IMediaControl(iface);
TRACE("graph %p, timeout %u, state %p.\n", graph, timeout, state);
if (timeout < 0) timeout = INFINITE;
return IMediaFilter_GetState(&graph->IMediaFilter_iface, timeout, (FILTER_STATE *)state);
@ -4951,6 +4959,7 @@ static HRESULT WINAPI MediaFilter_GetState(IMediaFilter *iface, DWORD timeout, F
}
LeaveCriticalSection(&graph->cs);
TRACE("Returning %#x, state %u.\n", hr, *state);
return hr;
}