diff options
Diffstat (limited to 'src/playlist/cue_playlist_plugin.c')
-rw-r--r-- | src/playlist/cue_playlist_plugin.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/playlist/cue_playlist_plugin.c b/src/playlist/cue_playlist_plugin.c index 75bc54847..b22712bc7 100644 --- a/src/playlist/cue_playlist_plugin.c +++ b/src/playlist/cue_playlist_plugin.c @@ -105,9 +105,6 @@ cue_playlist_read(struct playlist_provider *_playlist) song->start_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_length(track) - - track_get_index(track, 1) - + 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); @@ -115,6 +112,8 @@ cue_playlist_read(struct playlist_provider *_playlist) song->end_ms = ((track_get_start(track) + track_get_index(track, 1) - track_get_zero_pre(track)) * 1000) / 75; + else + song->end_ms = 0; return song; } |