diff --git a/NEWS b/NEWS index f4a8ded4..8806c0bc 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,7 @@ ncmpcpp-0.6.5 (????-??-??) * Xiph tag DESCRIPTION is now rewritten as COMMENT when updating tags. * Possible access of already freed memory when downloading artist info is fixed. * Name of an item is now displayed correctly if present. +* Assertion failure when resizing terminal window with no active MPD connection is fixed. ncmpcpp-0.6.4 (2015-05-02) diff --git a/src/status.cpp b/src/status.cpp index a6170e2b..cd41c90b 100644 --- a/src/status.cpp +++ b/src/status.cpp @@ -557,7 +557,7 @@ void Status::Changes::elapsedTime(bool update_elapsed) m_kbps = st.kbps(); } - if (m_player_state == MPD::psStop) + if (m_player_state == MPD::psUnknown || m_player_state == MPD::psStop) { if (Statusbar::isUnlocked() && Config.statusbar_visibility) *wFooter << NC::XY(0, 1) << wclrtoeol; @@ -565,6 +565,7 @@ void Status::Changes::elapsedTime(bool update_elapsed) } std::string ps = playerStateToString(m_player_state); + MPD::Song np = myPlaylist->nowPlayingSong(); drawTitle(np);