# HG changeset patch # User giacomo # Date 1168118969 28800 # Node ID dcac9f84176d761b7a3fc070c863fcf9ec62f798 # Parent 64a9db2518324fdded166213d9918e51b892130c [svn] - strenghtened penalty check in playback_initiate to handle some extreme situations (such as no output plugins loaded) diff -r 64a9db251832 -r dcac9f84176d ChangeLog --- a/ChangeLog Sat Jan 06 12:33:11 2007 -0800 +++ b/ChangeLog Sat Jan 06 13:29:29 2007 -0800 @@ -1,3 +1,10 @@ +2007-01-06 20:33:11 +0000 Giacomo Lozito + revision [3584] + - fix uninitialized integer, that was bringing troubles if the last playlist item was not available for playback + trunk/audacious/playback.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + 2007-01-06 03:25:19 +0000 William Pitcock revision [3582] - update to objective-make II diff -r 64a9db251832 -r dcac9f84176d audacious/playback.c --- a/audacious/playback.c Sat Jan 06 12:33:11 2007 -0800 +++ b/audacious/playback.c Sat Jan 06 13:29:29 2007 -0800 @@ -108,7 +108,7 @@ * * - nenolod */ - while (entry != NULL && !playback_play_file(entry)) + for ( penalty=0 ; penalty <= 15 && entry != NULL && !playback_play_file(entry) ; penalty++ ) { playlist_next(playlist); @@ -120,14 +120,13 @@ if (entry == NULL) return; - if (entry->decoder == NULL && - (entry->decoder = input_check_file(entry->filename, FALSE)) == NULL) - penalty++; + if (entry->decoder == NULL ) + entry->decoder = input_check_file(entry->filename, FALSE); /* if we hit 15 entries in a row with no valid decoder, just * bail due to confusion */ - if (penalty > 15) + if (penalty == 15) return; }