changeset 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 0b965d4772f1
children f07844bdc43f
files src/audlegacy/output.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audlegacy/output.c	Fri Apr 24 09:27:28 2009 +0100
+++ b/src/audlegacy/output.c	Fri Apr 24 09:43:03 2009 +0100
@@ -437,7 +437,9 @@
      */
     Playlist *pl = playlist_get_active();
     if (ip_data.stop == FALSE &&
-       (playlist_get_position_nolock(pl) < playlist_get_length(pl) - 1)) {
+       (playlist_get_position_nolock(pl) < playlist_get_length(pl) - 1) &&
+       !cfg.stopaftersong &&
+       !(cfg.no_playlist_advance && !cfg.repeat)) {
             AUDDBG("leaving audio opened\n");
             return;
         }