From a038bca74580359a883dc8d526feb7104a677d8c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Dec 2009 22:59:13 +0100 Subject: song: added support for selecting a time range Added attributes start_ms, end_ms. This allows us to address a portion of a song file (important for CUE support). There is no support yet for storing these attributes in the state file. --- test/dump_playlist.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/dump_playlist.c') diff --git a/test/dump_playlist.c b/test/dump_playlist.c index bf31400fe..1a569dfcb 100644 --- a/test/dump_playlist.c +++ b/test/dump_playlist.c @@ -128,6 +128,14 @@ int main(int argc, char **argv) while ((song = playlist_plugin_read(playlist)) != NULL) { g_print("%s\n", song->uri); + + if (song->start_ms > 0 || song->end_ms > 0) + g_print("range: %u:%02u..%u:%02u\n", + song->start_ms / 60000, + (song->start_ms / 1000) % 60, + song->end_ms / 60000, + (song->end_ms / 1000) % 60); + if (song->tag != NULL) tag_save(stdout, song->tag); -- cgit v1.2.3