Commit cae9950b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Rémi Denis-Courmont

DirectSound: really fix uninitialized mutex (fixes #12845)

(cherry picked from commit 944d96f758f109bdea7d18a02d95b8cd30f828f3)
parent 33ba4a3d
......@@ -633,6 +633,9 @@ static HRESULT Start( vlc_object_t *obj, aout_stream_sys_t *sys,
}
free( psz_speaker );
vlc_mutex_init(&sys->lock);
vlc_cond_init(&sys->cond);
if( AOUT_FMT_SPDIF( fmt ) && var_InheritBool( obj, "spdif" ) )
{
hr = CreateDSBuffer( obj, sys, VLC_CODEC_SPDIFL,
......@@ -769,9 +772,6 @@ static HRESULT Start( vlc_object_t *obj, aout_stream_sys_t *sys,
}
}
vlc_mutex_init(&sys->lock);
vlc_cond_init(&sys->cond);
int ret = vlc_clone(&sys->eraser_thread, PlayedDataEraser, (void*) obj,
VLC_THREAD_PRIORITY_LOW);
if( unlikely( ret ) )
......
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