aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrivej Desh <smpuj@bk.ru>2010-04-01 08:12:25 +0200
committerMax Kellermann <max@duempel.org>2010-04-01 08:12:25 +0200
commit50c0c4b7012f185655574f37cae3cde8e9293112 (patch)
treefd06ac995b91442eaacfed84a16f0a4227f7730e
parent8446b70ddc08d89738520ae5f064284779ac68a1 (diff)
downloadmpd-50c0c4b7012f185655574f37cae3cde8e9293112.tar.gz
mpd-50c0c4b7012f185655574f37cae3cde8e9293112.tar.xz
mpd-50c0c4b7012f185655574f37cae3cde8e9293112.zip
cue: fix code style
-rw-r--r--src/cue/cue_tag.c10
-rw-r--r--src/playlist/cue_playlist_plugin.c9
2 files changed, 9 insertions, 10 deletions
diff --git a/src/cue/cue_tag.c b/src/cue/cue_tag.c
index d5bfe26d3..ba1172559 100644
--- a/src/cue/cue_tag.c
+++ b/src/cue/cue_tag.c
@@ -179,12 +179,12 @@ cue_tag(struct Cd *cd, unsigned tnum)
return NULL;
tag->time = track_get_length(track)
- - track_get_index(track, 1)
- + track_get_zero_pre(track);
- track = cd_get_track(cd, tnum+1);
+ - track_get_index(track, 1)
+ + track_get_zero_pre(track);
+ track = cd_get_track(cd, tnum + 1);
if (track != NULL)
- tag->time += track_get_index(track, 1)
- - track_get_zero_pre(track);
+ tag->time += track_get_index(track, 1)
+ - track_get_zero_pre(track);
/* libcue returns the track duration in frames, and there are
75 frames per second; this formula rounds down */
tag->time = tag->time / 75;
diff --git a/src/playlist/cue_playlist_plugin.c b/src/playlist/cue_playlist_plugin.c
index d2959dab2..75bc54847 100644
--- a/src/playlist/cue_playlist_plugin.c
+++ b/src/playlist/cue_playlist_plugin.c
@@ -107,15 +107,14 @@ cue_playlist_read(struct playlist_provider *_playlist)
- track_get_zero_pre(track)) * 1000) / 75;
song->end_ms = ((track_get_start(track) + track_get_length(track)
- track_get_index(track, 1)
- + track_get_zero_pre(track))
- * 1000) / 75;
+ + track_get_zero_pre(track)) * 1000) / 75;
/* append pregap of the next track to the end of this one */
track = cd_get_track(playlist->cd, playlist->next);
if (track != NULL)
- song->end_ms = ((track_get_start(track)
- + track_get_index(track, 1)
- - track_get_zero_pre(track)) * 1000) / 75;
+ song->end_ms = ((track_get_start(track)
+ + track_get_index(track, 1)
+ - track_get_zero_pre(track)) * 1000) / 75;
return song;
}