[vlc-commits] ncurses: input item are equal if they are equal...

Rémi Denis-Courmont git at videolan.org
Mon Nov 14 23:03:14 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Nov 14 23:59:41 2016 +0200| [aaeeb46f97d2b1c4734711c7f3006ec55f561e0b] | committer: 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aaeeb46f97d2b1c4734711c7f3006ec55f561e0b
---

 modules/gui/ncurses.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index f8337e6..fcb2933 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -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;
 }



More information about the vlc-commits mailing list