Saving state of output-device in state-file. (This is a temporary solution, rewrite of state-file is planned for 0.13)
git-svn-id: https://svn.musicpd.org/mpd/trunk@3449 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -491,6 +491,9 @@ int main(int argc, char * argv[]) {
|
||||
initSigHandlers();
|
||||
readPlaylistState();
|
||||
|
||||
/* qball crappy code */
|
||||
readAudioDevicesState();
|
||||
|
||||
while(COMMAND_RETURN_KILL!=doIOForInterfaces()) {
|
||||
if(COMMAND_RETURN_KILL==handlePendingSignals()) break;
|
||||
syncPlayerAndPlaylist();
|
||||
@@ -499,6 +502,10 @@ int main(int argc, char * argv[]) {
|
||||
}
|
||||
|
||||
savePlaylistState();
|
||||
/* qball crappy code */
|
||||
saveAudioDevicesState();
|
||||
|
||||
|
||||
playerKill();
|
||||
|
||||
freeAllInterfaces();
|
||||
|
||||
Reference in New Issue
Block a user