Guard against even MORE nullptr dereference (should fix #2153 again)
This commit is contained in:
parent
e41534d114
commit
a77c40f105
1 changed files with 4 additions and 0 deletions
|
@ -262,6 +262,10 @@ static bool track_ok(const std::string& id)
|
|||
{
|
||||
LOG_AUDIO << "Considering " << id << "\n";
|
||||
|
||||
if(!current_track) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// If they committed changes to list, we forget previous plays, but
|
||||
// still *never* repeat same track twice if we have an option.
|
||||
if(id == current_track->file_path()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue