aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-26 22:25:01 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-26 22:25:01 +0000
commit12d19cccd284457be9f5be8fcdac5b9d9b894b3f (patch)
tree37519ef3164ba7aacb1b747acbd4b37c3488a453 /src/playlist.c
parent7c861b334b9b78d6f87aad88443a82331fbe5955 (diff)
downloadmpd-12d19cccd284457be9f5be8fcdac5b9d9b894b3f.tar.gz
mpd-12d19cccd284457be9f5be8fcdac5b9d9b894b3f.tar.xz
mpd-12d19cccd284457be9f5be8fcdac5b9d9b894b3f.zip
close audio device on pause, after we say we have paused, makes pause seem
more responsive git-svn-id: https://svn.musicpd.org/mpd/trunk@504 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/playlist.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/playlist.c b/src/playlist.c
index 1d30fe9cb..2ca7cadcb 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -23,7 +23,6 @@
#include "tag.h"
#include "conf.h"
#include "directory.h"
-#include "stats.h"
#include "log.h"
#include "path.h"
#include "utils.h"
@@ -642,13 +641,11 @@ int stopPlaylist(FILE * fp) {
playlist.queued = -1;
playlist_state = PLAYLIST_STATE_STOP;
playlist_noGoToNext = 0;
- /*stats.playTime+=getPlayerElapsedTime();*/
if(playlist.random) randomizeOrder(0,playlist.length-1);
return 0;
}
int playPlaylistOrderNumber(FILE * fp, int orderNum) {
- /*stats.songsPlayed++;*/
if(playerStop(fp)<0) return -1;
@@ -743,11 +740,9 @@ int nextSongInPlaylist(FILE * fp) {
playlist_stopOnError = 0;
if(playlist.current<playlist.length-1) {
- /*stats.playTime+=getPlayerElapsedTime();*/
return playPlaylistOrderNumber(fp,playlist.current+1);
}
else if(playlist.length && playlist.repeat) {
- /*stats.playTime+=getPlayerElapsedTime();*/
if(playlist.random) randomizeOrder(0,playlist.length-1);
return playPlaylistOrderNumber(fp,0);
}