diff options
author | Max Kellermann <max@duempel.org> | 2010-06-25 20:02:24 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-06-25 20:02:55 +0200 |
commit | eb6188f8c07b45fcc99e0c90486e65bba68cc965 (patch) | |
tree | 54315054660bcae9efa9d1b5313bc0ec1a573e47 /test | |
parent | 6bb7a7439dfa01745a7cf67e71d204e3b22926b6 (diff) |
test/dump_playlist: print open-ended range
Diffstat (limited to 'test')
-rw-r--r-- | test/dump_playlist.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/dump_playlist.c b/test/dump_playlist.c index 95207e24d..a8cb4d750 100644 --- a/test/dump_playlist.c +++ b/test/dump_playlist.c @@ -126,12 +126,16 @@ 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) + if (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); + 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) tag_save(stdout, song->tag); |