diff options
author | Max Kellermann <max@duempel.org> | 2009-12-26 12:03:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-27 16:08:53 +0100 |
commit | bb4cef6a937a833c54f251f3e7a7f378e285b9b5 (patch) | |
tree | 869f168911d51fc90d7660e1b05a588163e1fc00 /src/playlist/cue_playlist_plugin.c | |
parent | 5787f737044e90b74e22d2179cd0d1b47fd17c76 (diff) | |
download | mpd-bb4cef6a937a833c54f251f3e7a7f378e285b9b5.tar.gz mpd-bb4cef6a937a833c54f251f3e7a7f378e285b9b5.tar.xz mpd-bb4cef6a937a833c54f251f3e7a7f378e285b9b5.zip |
playlist/cue: fill song.start_ms, .end_ms
This patch adds practical usefulness to the CUE playlist plugin.
Diffstat (limited to 'src/playlist/cue_playlist_plugin.c')
-rw-r--r-- | src/playlist/cue_playlist_plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/playlist/cue_playlist_plugin.c b/src/playlist/cue_playlist_plugin.c index 27576520c..a9b596560 100644 --- a/src/playlist/cue_playlist_plugin.c +++ b/src/playlist/cue_playlist_plugin.c @@ -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; } |