Get rid of PlayerControl inside the PlayerData struct

It actually increases our image size a small bit and may even
hurt performance a very small bit, but makes the code less
verbose and easier to manage.

I don't see a reason for mpd to ever support playing multiple
files at the same time (users can run multiple instances of mpd
if they really want to play Zaireeka, but that's such an edge
case it's not worth ever supporting in our code).

git-svn-id: https://svn.musicpd.org/mpd/trunk@7352 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Eric Wong
2008-04-13 01:15:50 +00:00
parent ae1335753a
commit 98acfa8ac5
7 changed files with 184 additions and 246 deletions

View File

@@ -432,7 +432,7 @@ int main(int argc, char *argv[])
openVolumeDevice();
decoderInit(&getPlayerData()->decoderControl);
playerInit(&getPlayerData()->playerControl);
playerInit();
read_state_file();
while (COMMAND_RETURN_KILL != doIOForInterfaces() &&