Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
a82e5fca
Commit
a82e5fca
authored
Jul 09, 2008
by
Laurent Aimar
Browse files
Fixed infinite loop if alsa was closed before playing any audio.
parent
5f2b369c
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/audio_output/alsa.c
View file @
a82e5fca
...
...
@@ -730,12 +730,15 @@ static void Close( vlc_object_t *p_this )
struct
aout_sys_t
*
p_sys
=
p_aout
->
output
.
p_sys
;
int
i_snd_rc
;
/* Make sure that the thread will stop once it is waken up */
vlc_object_kill
(
p_aout
);
/* make sure the audio output thread is waken up */
vlc_mutex_lock
(
&
p_aout
->
output
.
p_sys
->
lock
);
vlc_cond_signal
(
&
p_aout
->
output
.
p_sys
->
wait
);
vlc_mutex_unlock
(
&
p_aout
->
output
.
p_sys
->
lock
);
vlc_object_kill
(
p_aout
);
/* */
vlc_thread_join
(
p_aout
);
p_aout
->
b_die
=
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment