Commit eb6188f8 authored by Max Kellermann's avatar Max Kellermann

test/dump_playlist: print open-ended range

parent 6bb7a743
...@@ -126,12 +126,16 @@ int main(int argc, char **argv) ...@@ -126,12 +126,16 @@ int main(int argc, char **argv)
while ((song = playlist_plugin_read(playlist)) != NULL) { while ((song = playlist_plugin_read(playlist)) != NULL) {
g_print("%s\n", song->uri); g_print("%s\n", song->uri);
if (song->start_ms > 0 || song->end_ms > 0) if (song->end_ms > 0)
g_print("range: %u:%02u..%u:%02u\n", g_print("range: %u:%02u..%u:%02u\n",
song->start_ms / 60000, song->start_ms / 60000,
(song->start_ms / 1000) % 60, (song->start_ms / 1000) % 60,
song->end_ms / 60000, song->end_ms / 60000,
(song->end_ms / 1000) % 60); (song->end_ms / 1000) % 60);
else if (song->start_ms > 0)
g_print("range: %u:%02u..\n",
song->start_ms / 60000,
(song->start_ms / 1000) % 60);
if (song->tag != NULL) if (song->tag != NULL)
tag_save(stdout, song->tag); tag_save(stdout, song->tag);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment