Skip to content

Commit

Permalink
spd: Fix crash on cancelling with server audio
Browse files Browse the repository at this point in the history
The audio thread may call speak_queue_stop_or_pause after speaking_module is
cleared by is_sb_speaking.
  • Loading branch information
sthibaul committed Jun 23, 2024
1 parent 2fe38bc commit eff3ae3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,9 @@ static void output_queue_event(speak_queue_entry *entry)
{
char c = 0;
int ret;
if (!speaking_module)
// We were cancelled
return;
pthread_mutex_lock(&playback_events_mutex);
playback_events = g_slist_append(playback_events, entry);
pthread_mutex_unlock(&playback_events_mutex);
Expand Down

0 comments on commit eff3ae3

Please sign in to comment.