Commit 0bad9529 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz: Add more tracing to state change methods.

parent 313c27ad
......@@ -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;
}
......
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