Mercurial > audlegacy
comparison src/audlegacy/output.c @ 4868:a6feb7c0f722
Do not leave the audio device open when using stop after current song, patch by Edward Sheldrake closes bug #12.
author | Tony Vroon <chainsaw@gentoo.org> |
---|---|
date | Fri, 24 Apr 2009 09:43:03 +0100 |
parents | 8ebd8358de04 |
children |
comparison
equal
deleted
inserted
replaced
4867:0b965d4772f1 | 4868:a6feb7c0f722 |
---|---|
435 /* Do not close if there are still songs to play and the user has | 435 /* Do not close if there are still songs to play and the user has |
436 * not requested a stop. --nenolod | 436 * not requested a stop. --nenolod |
437 */ | 437 */ |
438 Playlist *pl = playlist_get_active(); | 438 Playlist *pl = playlist_get_active(); |
439 if (ip_data.stop == FALSE && | 439 if (ip_data.stop == FALSE && |
440 (playlist_get_position_nolock(pl) < playlist_get_length(pl) - 1)) { | 440 (playlist_get_position_nolock(pl) < playlist_get_length(pl) - 1) && |
441 !cfg.stopaftersong && | |
442 !(cfg.no_playlist_advance && !cfg.repeat)) { | |
441 AUDDBG("leaving audio opened\n"); | 443 AUDDBG("leaving audio opened\n"); |
442 return; | 444 return; |
443 } | 445 } |
444 | 446 |
445 /* Sanity check. */ | 447 /* Sanity check. */ |