# HG changeset patch # User Tomasz Mon # Date 1209717247 -7200 # Node ID d2fd41d3964eafe13ebc14fbc689936539ac891d # Parent 6cf91e97c6d5ecaafd959499c55c3e8d60c43acc Stop playback (instead of doing endless loop) when file can't be read diff -r 6cf91e97c6d5 -r d2fd41d3964e src/audacious/playback.c --- a/src/audacious/playback.c Wed Apr 30 23:53:20 2008 +0200 +++ b/src/audacious/playback.c Fri May 02 10:34:07 2008 +0200 @@ -176,10 +176,13 @@ entry = playlist_get_entry_to_play(playlist); g_return_if_fail(entry != NULL); + + if (!playback_play_file(entry)) + return; + #ifdef USE_DBUS mpris_emit_track_change(mpris); #endif - playback_play_file(entry); playlist_check_pos_current(playlist); @@ -385,6 +388,11 @@ g_free(pr); } + else + { + mainwin_stop_pushed(); + return FALSE; + } } if (!entry->decoder || !entry->decoder->enabled)