Skip to content

Commit

Permalink
Fix a case where entry_set_failed() would not be called if we already…
Browse files Browse the repository at this point in the history
… had a tuple but finding a decoder failed. Send PLAYLIST_UPDATE_METADATA when we call entry_set_failed().
  • Loading branch information
jlindgren90 committed Jan 9, 2012
1 parent c3f6e85 commit 6b68add
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/audacious/playlist-new.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,11 @@ static void * scanner (void * data)
entry_set_tuple (playlist, entry, tuple);
queue_update (PLAYLIST_UPDATE_METADATA, playlist->number, entry->number, 1);
}
else if (need_tuple)
else if (need_tuple || ! decoder)
{
entry_set_failed (playlist, entry);
queue_update (PLAYLIST_UPDATE_METADATA, playlist->number, entry->number, 1);
}

g_slice_free (ScanItem, scan_items[i]);
scan_items[i] = NULL;
Expand Down

0 comments on commit 6b68add

Please sign in to comment.