aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-09 14:03:47 +0100
committerMax Kellermann <max@duempel.org>2014-12-09 14:04:11 +0100
commitd62a738460c2647187384eaaf31c9aebcdda3b9d (patch)
tree3fb8545b309370108ed9875940c288c52d15cb0a /src/playlist
parent0f1b1bb44d7dfea657116ef7bf1c4d8fd5cbce24 (diff)
parent0cfd4fff62be0e2fd16041347ba7dfa7b84fec11 (diff)
downloadmpd-d62a738460c2647187384eaaf31c9aebcdda3b9d.tar.gz
mpd-d62a738460c2647187384eaaf31c9aebcdda3b9d.tar.xz
mpd-d62a738460c2647187384eaaf31c9aebcdda3b9d.zip
Merge branch 'v0.19.x'
Diffstat (limited to 'src/playlist')
-rw-r--r--src/playlist/Print.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/playlist/Print.cxx b/src/playlist/Print.cxx
index 0db2a4ab0..8f743f56d 100644
--- a/src/playlist/Print.cxx
+++ b/src/playlist/Print.cxx
@@ -43,12 +43,13 @@ playlist_provider_print(Client &client, const char *uri,
DetachedSong *song;
while ((song = e.NextSong()) != nullptr) {
if (playlist_check_translate_song(*song, base_uri.c_str(),
- loader)) {
- if (detail)
- song_print_info(client, *song);
- else
- song_print_uri(client, *song);
- }
+ loader) &&
+ detail)
+ song_print_info(client, *song);
+ else
+ /* fallback if no detail was requested or no
+ detail was available */
+ song_print_uri(client, *song);
delete song;
}