Compare encoded urls. Fixes issue 2842. Some random tracks are not properly read from the cue sheet after clementine restart

This commit is contained in:
Alexey Bo 2012-11-26 23:07:28 +06:00 committed by John Maguire
parent 875b297278
commit c7be61f11d
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ PlaylistItemPtr PlaylistBackend::RestoreCueData(PlaylistItemPtr item, boost::sha
}
foreach(const Song& from_list, song_list) {
if(from_list.url() == song.url() &&
if(from_list.url().toEncoded() == song.url().toEncoded() &&
from_list.beginning_nanosec() == song.beginning_nanosec()) {
// we found a matching section; replace the input
// item with a new one containing CUE metadata