decode: reformatting for better readability

git-svn-id: https://svn.musicpd.org/mpd/trunk@6742 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2007-08-12 19:15:06 +00:00
parent 3fedc4d806
commit d286294805

View File

@ -228,10 +228,12 @@ static int decodeSeek(PlayerControl * pc, DecoderControl * dc,
} \ } \
if(pc->pause) { \ if(pc->pause) { \
pause = !pause; \ pause = !pause; \
if (pause) pc->state = PLAYER_STATE_PAUSE; \ if (pause) { \
else { \ pc->state = PLAYER_STATE_PAUSE; \
if (openAudioDevice(NULL) >= 0) pc->state = PLAYER_STATE_PLAY; \ } else { \
else { \ if (openAudioDevice(NULL) >= 0) { \
pc->state = PLAYER_STATE_PLAY; \
} else { \
pathcpy_trunc(pc->erroredUrl, pc->utf8url); \ pathcpy_trunc(pc->erroredUrl, pc->utf8url); \
pc->error = PLAYER_ERROR_AUDIO; \ pc->error = PLAYER_ERROR_AUDIO; \
ERROR("problems opening audio device while playing \"%s\"\n", pc->utf8url); \ ERROR("problems opening audio device while playing \"%s\"\n", pc->utf8url); \
@ -240,8 +242,9 @@ static int decodeSeek(PlayerControl * pc, DecoderControl * dc,
} \ } \
pc->pause = 0; \ pc->pause = 0; \
kill(getppid(), SIGUSR1); \ kill(getppid(), SIGUSR1); \
if (pause == -1) pause = 1; \ if (pause == -1) { \
else if (pause) { \ pause = 1; \
} else if (pause) { \
dropBufferedAudio(); \ dropBufferedAudio(); \
closeAudioDevice(); \ closeAudioDevice(); \
} \ } \