X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fplayermainwindow.cpp;h=ff734cb35e74515c5fb0a776345102ad85c0a69e;hb=89d6f429c436d6c03eb124f3fa750df60c0baa0b;hp=f34a9c8279d26df65c016201c7f31da7215f569b;hpb=ec3f00561af85a33926bb8039eeb7e52503a5990;p=vlc-remote diff --git a/src/playermainwindow.cpp b/src/playermainwindow.cpp index f34a9c8..ff734cb 100644 --- a/src/playermainwindow.cpp +++ b/src/playermainwindow.cpp @@ -378,7 +378,9 @@ // key if we are going to look for album art later // for now we check length and title this will require further examination later mCurrentStatus.newtrack = true; - if (mCurrentStatus.length == length && !mCurrentStatus.title.isNull() && 0 == QString::compare(mCurrentStatus.title, title)) { + if ( (0 == mCurrentStatus.length || STOP == mCurrentStatus.state) // stopped or null + || // same track as current playing + (mCurrentStatus.length == length && !mCurrentStatus.title.isNull() && 0 == QString::compare(mCurrentStatus.title, title)) ){ mCurrentStatus.newtrack = false; } mCurrentStatus.volume = volume;