cue: fix code style
This commit is contained in:
parent
8446b70ddc
commit
50c0c4b701
@ -179,12 +179,12 @@ cue_tag(struct Cd *cd, unsigned tnum)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
tag->time = track_get_length(track)
|
tag->time = track_get_length(track)
|
||||||
- track_get_index(track, 1)
|
- track_get_index(track, 1)
|
||||||
+ track_get_zero_pre(track);
|
+ track_get_zero_pre(track);
|
||||||
track = cd_get_track(cd, tnum+1);
|
track = cd_get_track(cd, tnum + 1);
|
||||||
if (track != NULL)
|
if (track != NULL)
|
||||||
tag->time += track_get_index(track, 1)
|
tag->time += track_get_index(track, 1)
|
||||||
- track_get_zero_pre(track);
|
- track_get_zero_pre(track);
|
||||||
/* libcue returns the track duration in frames, and there are
|
/* libcue returns the track duration in frames, and there are
|
||||||
75 frames per second; this formula rounds down */
|
75 frames per second; this formula rounds down */
|
||||||
tag->time = tag->time / 75;
|
tag->time = tag->time / 75;
|
||||||
|
@ -107,15 +107,14 @@ cue_playlist_read(struct playlist_provider *_playlist)
|
|||||||
- track_get_zero_pre(track)) * 1000) / 75;
|
- track_get_zero_pre(track)) * 1000) / 75;
|
||||||
song->end_ms = ((track_get_start(track) + track_get_length(track)
|
song->end_ms = ((track_get_start(track) + track_get_length(track)
|
||||||
- track_get_index(track, 1)
|
- track_get_index(track, 1)
|
||||||
+ track_get_zero_pre(track))
|
+ track_get_zero_pre(track)) * 1000) / 75;
|
||||||
* 1000) / 75;
|
|
||||||
|
|
||||||
/* append pregap of the next track to the end of this one */
|
/* append pregap of the next track to the end of this one */
|
||||||
track = cd_get_track(playlist->cd, playlist->next);
|
track = cd_get_track(playlist->cd, playlist->next);
|
||||||
if (track != NULL)
|
if (track != NULL)
|
||||||
song->end_ms = ((track_get_start(track)
|
song->end_ms = ((track_get_start(track)
|
||||||
+ track_get_index(track, 1)
|
+ track_get_index(track, 1)
|
||||||
- track_get_zero_pre(track)) * 1000) / 75;
|
- track_get_zero_pre(track)) * 1000) / 75;
|
||||||
|
|
||||||
return song;
|
return song;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user