diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-06-04 22:29:55 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-06-04 22:29:55 +0000 |
commit | 89eca9eebcec92efaf7bf5ecada3af4fbf540c9f (patch) | |
tree | 0c6fc19a0e495694f652a91f6dc0cef3da98d2b1 /src/player.h | |
parent | 4734a2e2b4d17ec4a03a1fdf08ed0f04bf8d431c (diff) | |
download | mpd-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 'src/player.h')
-rw-r--r-- | src/player.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h index ce7eebc9b..de44f8e64 100644 --- a/src/player.h +++ b/src/player.h @@ -57,7 +57,6 @@ #define PLAYER_METADATA_STATE_WRITE 2 typedef struct _PlayerControl { - volatile mpd_sint8 quit; volatile mpd_sint8 stop; volatile mpd_sint8 play; volatile mpd_sint8 pause; @@ -122,7 +121,7 @@ int getPlayerError(void); int playerInit(void); -int playerQuit(int fd); +int playerWait(int fd); int queueSong(Song * song); |