Mercurial > audlegacy
diff audacious/playback.c @ 1672:600efc52c645 trunk
[svn] - be careful about referencing a NULL widget (e.g. headless/serveronly mode crashes on streams, bug #562)
author | nenolod |
---|---|
date | Tue, 12 Sep 2006 23:11:07 -0700 |
parents | a6e6d3500c13 |
children | 30d40252862d |
line wrap: on
line diff
--- a/audacious/playback.c Tue Sep 12 10:59:59 2006 -0700 +++ b/audacious/playback.c Tue Sep 12 23:11:07 2006 -0700 @@ -124,13 +124,15 @@ ip_data.paused = !ip_data.paused; + if (get_current_input_plugin()->pause) + get_current_input_plugin()->pause(ip_data.paused); + + g_return_if_fail(mainwin_playstatus != NULL); + if (ip_data.paused) playstatus_set_status(mainwin_playstatus, STATUS_PAUSE); else playstatus_set_status(mainwin_playstatus, STATUS_PLAY); - - if (get_current_input_plugin()->pause) - get_current_input_plugin()->pause(ip_data.paused); } void @@ -156,8 +158,11 @@ } ip_data.buffering = FALSE; + ip_data.playing = FALSE; + + g_return_if_fail(mainwin_playstatus != NULL); + playstatus_set_status_buffering(mainwin_playstatus, FALSE); - ip_data.playing = FALSE; } void