Commit aaeeb46f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ncurses: input item are equal if they are equal...

If we have two valid input item pointers, then they are the same if
and only if the pointers are equal. No need to compare input item IDs.
parent 9cb3c475
......@@ -501,7 +501,7 @@ static inline bool IsIndex(intf_sys_t *sys, playlist_t *p_playlist, int i)
playlist_item_t *p_played_item = playlist_CurrentPlayingItem(p_playlist);
if (p_played_item && item->p_input && p_played_item->p_input)
return item->p_input->i_id == p_played_item->p_input->i_id;
return item->p_input == p_played_item->p_input;
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment