Commit 944d96f7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

DirectSound: really fix uninitialized mutex (fixes #12845)

parent 62a5a151
......@@ -634,6 +634,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,
......@@ -770,9 +773,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