aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-08-12 19:15:06 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-08-12 19:15:06 +0000
commitd286294805fc3f05e4d47c7c0c00e4854528186a (patch)
tree531f82a6ad8aa689b97c839d8877b9bc172f6cb0 /src
parent3fedc4d806e972c9676f82e88571a6381e61f3ff (diff)
downloadmpd-d286294805fc3f05e4d47c7c0c00e4854528186a.tar.gz
mpd-d286294805fc3f05e4d47c7c0c00e4854528186a.tar.xz
mpd-d286294805fc3f05e4d47c7c0c00e4854528186a.zip
decode: reformatting for better readability
git-svn-id: https://svn.musicpd.org/mpd/trunk@6742 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/decode.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/decode.c b/src/decode.c
index e64be35b4..3f9c8610d 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -228,10 +228,12 @@ static int decodeSeek(PlayerControl * pc, DecoderControl * dc,
} \
if(pc->pause) { \
pause = !pause; \
- if (pause) pc->state = PLAYER_STATE_PAUSE; \
- else { \
- if (openAudioDevice(NULL) >= 0) pc->state = PLAYER_STATE_PLAY; \
- else { \
+ if (pause) { \
+ pc->state = PLAYER_STATE_PAUSE; \
+ } else { \
+ if (openAudioDevice(NULL) >= 0) { \
+ pc->state = PLAYER_STATE_PLAY; \
+ } else { \
pathcpy_trunc(pc->erroredUrl, pc->utf8url); \
pc->error = PLAYER_ERROR_AUDIO; \
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; \
kill(getppid(), SIGUSR1); \
- if (pause == -1) pause = 1; \
- else if (pause) { \
+ if (pause == -1) { \
+ pause = 1; \
+ } else if (pause) { \
dropBufferedAudio(); \
closeAudioDevice(); \
} \