aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-06-04 22:29:55 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-06-04 22:29:55 +0000
commit89eca9eebcec92efaf7bf5ecada3af4fbf540c9f (patch)
tree0c6fc19a0e495694f652a91f6dc0cef3da98d2b1 /src/playlist.c
parent4734a2e2b4d17ec4a03a1fdf08ed0f04bf8d431c (diff)
downloadmpd-89eca9eebcec92efaf7bf5ecada3af4fbf540c9f.tar.gz
mpd-89eca9eebcec92efaf7bf5ecada3af4fbf540c9f.tar.xz
mpd-89eca9eebcec92efaf7bf5ecada3af4fbf540c9f.zip
Don't kill the player process (and effectively the decode process) when
completely stopped. Instead, send them SIGSTOP to pause the process until they're needed again. Then send them SIGCONT instead of re-spawning them. git-svn-id: https://svn.musicpd.org/mpd/trunk@6485 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/playlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist.c b/src/playlist.c
index f6ae8ab51..8b2bc1f42 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -788,7 +788,7 @@ int deleteFromPlaylist(int fd, int song)
&& playlist.current == songOrder) {
/*if(playlist.current>=playlist.length) return playerStop(fd);
else return playPlaylistOrderNumber(fd,playlist.current); */
- playerQuit(STDERR_FILENO);
+ playerWait(STDERR_FILENO);
playlist_noGoToNext = 1;
}
@@ -829,7 +829,7 @@ void deleteASongFromPlaylist(Song * song)
int stopPlaylist(int fd)
{
DEBUG("playlist: stop\n");
- if (playerQuit(fd) < 0)
+ if (playerWait(fd) < 0)
return -1;
playlist.queued = -1;
playlist_state = PLAYLIST_STATE_STOP;