Commit 9b72dc3f authored by Felix Abecassis's avatar Felix Abecassis Committed by Rémi Denis-Courmont

DirectSound: avoid double call to release function

If Start() failed, IDirectSound_Release() was called twice.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net> with changes
parent 5ef694fb
......@@ -772,10 +772,7 @@ static HRESULT StreamStart( aout_stream_t *s,
hr = Start( VLC_OBJECT(s), sys, fmt );
if( FAILED(hr) )
{
IDirectSound_Release( sys->p_dsobject );
goto error;
}
s->sys = sys;
s->time_get = StreamTimeGet;
......
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