Skip to content

Commit

Permalink
Fix hanging / 100% CPU usage when pulseaudio is killed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maato committed Mar 15, 2012
1 parent b5a51e9 commit 9d034ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/alsa_backend.c
Expand Up @@ -64,7 +64,11 @@ static int asound_elem_event(snd_mixer_elem_t * elem, unsigned int mask)
static gboolean asound_poll_cb(GIOChannel * source, GIOCondition condition,
gpointer data)
{
snd_mixer_handle_events(m_mixer);
int retval = snd_mixer_handle_events(m_mixer);
if(retval < 0) {
fprintf(stderr, "snd_mixer_handle_events: %s\n", snd_strerror(retval));
return FALSE;
}
return TRUE;
}

Expand Down

0 comments on commit 9d034ba

Please sign in to comment.