Commit 9c2cf131 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

strmbase: Forbid disconnecting the sink if the filter is not stopped.

parent 7cae17c1
......@@ -887,6 +887,13 @@ static HRESULT WINAPI sink_Disconnect(IPin *iface)
EnterCriticalSection(&pin->pin.filter->csFilter);
if (pin->pin.filter->state != State_Stopped)
{
LeaveCriticalSection(&pin->pin.filter->csFilter);
WARN("Filter is not stopped; returning VFW_E_NOT_STOPPED.\n");
return VFW_E_NOT_STOPPED;
}
if (pin->pin.peer)
{
if (pin->pFuncsTable->sink_disconnect)
......
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