aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistPrint.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/PlaylistPrint.cxx')
-rw-r--r--src/PlaylistPrint.cxx16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/PlaylistPrint.cxx b/src/PlaylistPrint.cxx
index c984ea224..38d63f4e8 100644
--- a/src/PlaylistPrint.cxx
+++ b/src/PlaylistPrint.cxx
@@ -156,15 +156,13 @@ playlist_provider_print(Client &client, const char *uri,
DetachedSong *song;
while ((song = e.NextSong()) != nullptr) {
- song = playlist_check_translate_song(song, base_uri.c_str(),
- false);
- if (song == nullptr)
- continue;
-
- if (detail)
- song_print_info(client, *song);
- else
- song_print_uri(client, *song);
+ if (playlist_check_translate_song(*song, base_uri.c_str(),
+ false)) {
+ if (detail)
+ song_print_info(client, *song);
+ else
+ song_print_uri(client, *song);
+ }
delete song;
}