diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2007-06-01 18:10:13 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2007-06-01 18:10:13 +0000 |
commit | 6d7e0eb1664d14ae3d1d229acfcccf46abf947db (patch) | |
tree | a382eb8e90af2b2cc1de8b74d85118249ab93eaf /src/playerData.c | |
parent | 88638f4821842f76062397559614f36b717ffdbb (diff) | |
download | mpd-6d7e0eb1664d14ae3d1d229acfcccf46abf947db.tar.gz mpd-6d7e0eb1664d14ae3d1d229acfcccf46abf947db.tar.xz mpd-6d7e0eb1664d14ae3d1d229acfcccf46abf947db.zip |
Tell the player process (and thus also the decode process) to quit when
playback is stopped completely. This means the player process will no
longer have to wake up 100 times per second to see if it's been told to
start playing (the main process will just spawn a new player process when
it needs to). On the downside, this means an extra pair of forks() and the
re-initializing of the player and decode processes each time playback is
restarted.
git-svn-id: https://svn.musicpd.org/mpd/trunk@6446 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/playerData.c')
-rw-r--r-- | src/playerData.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/playerData.c b/src/playerData.c index 30ff6d6d6..e4506c1e7 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -118,6 +118,7 @@ void initPlayerData(void) buffered_chunks * sizeof(mpd_sint8)); buffer->acceptMetadata = 0; + playerData_pd->playerControl.quit = 0; playerData_pd->playerControl.stop = 0; playerData_pd->playerControl.pause = 0; playerData_pd->playerControl.play = 0; |