X-Git-Url: http://git.maemo.org/git/?p=groove;a=blobdiff_plain;f=playlist.cpp;h=e79229d4fba730ef5410b649d068766a83872a69;hp=3c9f6ea03a15caa6028c82c577357595c894acd0;hb=4adbefb36e52cb33564e704d8ea6a49425db8caf;hpb=a8bf5223d571ba94c0c4ce4e36b1bc2e7c5a81f0 diff --git a/playlist.cpp b/playlist.cpp index 3c9f6ea..e79229d 100644 --- a/playlist.cpp +++ b/playlist.cpp @@ -17,6 +17,7 @@ void playlist::markPlayed(int position) } void playlist::freeMemory(int position) { + pList->at(position)->downloaded = false; delete pList->at(position)->buffer; pList->at(position)->buffer = new QBuffer(); } @@ -45,6 +46,8 @@ bool playlist::setCurrentPlaying(int position) if(pList->size() > position) { this->currentplayingitem = position; + if(!pList->at(position)->downloaded && this->currentdownloaditem != this->currentplayingitem) + this->beginDownload(position); /*if(pList->at(position)->bufferready == false &&) { if(!pList->at(position)->downloaded)