diff --git a/src/song.cpp b/src/song.cpp index 4f7ab90e..dc97cf5d 100644 --- a/src/song.cpp +++ b/src/song.cpp @@ -494,8 +494,11 @@ void MPD::Song::SetHashAndSlash() { if (!itsSong->file) return; - const char *tmp = strrchr(itsSong->file, '/'); - itsSlash = tmp && *(tmp-1) != '/' /* no http:// */ ? tmp-itsSong->file : std::string::npos; + if (!isStream()) + { + const char *tmp = strrchr(itsSong->file, '/'); + itsSlash = tmp && *(tmp-1) != '/' /* no http:// */ ? tmp-itsSong->file : std::string::npos; + } itsHash = calc_hash(itsSong->file); }