From 6d7e0eb1664d14ae3d1d229acfcccf46abf947db Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Fri, 1 Jun 2007 18:10:13 +0000 Subject: 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 --- src/playerData.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/playerData.c') 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; -- cgit v1.2.3