playlist/cue: fill song.start_ms, .end_ms

This patch adds practical usefulness to the CUE playlist plugin.
This commit is contained in:
Max Kellermann
2009-12-26 12:03:27 +01:00
parent 5787f73704
commit bb4cef6a93
2 changed files with 4 additions and 0 deletions

View File

@@ -102,6 +102,9 @@ cue_playlist_read(struct playlist_provider *_playlist)
song = song_remote_new(filename);
song->tag = tag;
song->start_ms = (track_get_start(track) * 1000) / 75;
song->end_ms = ((track_get_start(track) + track_get_length(track))
* 1000) / 75;
return song;
}