comparison audacious/playback.c @ 2155:840263ee3a5c trunk

[svn] - fix the logic of bmp_playback_stop(). now JTF works well even if the playing is paused.
author yaz
date Mon, 18 Dec 2006 03:34:52 -0800
parents a414866b32bc
children fe6e7b9b4aac
comparison
equal deleted inserted replaced
2154:37c53bc43e9e 2155:840263ee3a5c
164 164
165 void 165 void
166 bmp_playback_stop(void) 166 bmp_playback_stop(void)
167 { 167 {
168 if (ip_data.playing && get_current_input_plugin()) { 168 if (ip_data.playing && get_current_input_plugin()) {
169 ip_data.playing = FALSE;
170 169
171 if (bmp_playback_get_paused()) 170 if (bmp_playback_get_paused())
172 bmp_playback_pause(); 171 bmp_playback_pause();
172
173 ip_data.playing = FALSE;
173 174
174 if (get_current_input_plugin()->stop) 175 if (get_current_input_plugin()->stop)
175 get_current_input_plugin()->stop(); 176 get_current_input_plugin()->stop();
176 177
177 free_vis_data(); 178 free_vis_data();