From ed883e20595fc0a693b442a81be412cc1012c318 Mon Sep 17 00:00:00 2001 From: Alexander Lopatin Date: Sun, 7 Jul 2013 21:22:21 +0400 Subject: [PATCH] song info: fix #3786 (crash when pressing 'i' to get info of the stream) --- src/song_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/song_info.cpp b/src/song_info.cpp index e7ebad73..b72926b5 100644 --- a/src/song_info.cpp +++ b/src/song_info.cpp @@ -101,7 +101,7 @@ void SongInfo::PrepareSong(MPD::Song &s) w << "\n\n" << NC::Color::End; w << NC::Format::Bold << "Length: " << NC::Format::NoBold << Config.color2 << s.getLength() << '\n' << NC::Color::End; # ifdef HAVE_TAGLIB_H - if (!Config.mpd_music_dir.empty()) + if (!Config.mpd_music_dir.empty() && !s.isStream()) { std::string path_to_file; if (s.isFromDatabase())