[vlc-commits] ncurses: fix variable shadowing
Rémi Denis-Courmont
git at videolan.org
Thu Jun 29 22:35:54 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 29 23:20:12 2017 +0300| [64ca0089d0c04d874a46f77fc05db7b318ff6838] | committer: Rémi Denis-Courmont
ncurses: fix variable shadowing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=64ca0089d0c04d874a46f77fc05db7b318ff6838
---
modules/gui/ncurses.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index 12c80ca827..1c593f8871 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -975,15 +975,15 @@ static int DrawPlaylist(intf_thread_t *intf, input_thread_t *input)
for (int i = 0; i < sys->plist_entries; i++) {
char c;
playlist_item_t *current;
- input_item_t *input = sys->plist[i]->item;
+ input_item_t *item = sys->plist[i]->item;
PL_LOCK;
current = playlist_CurrentPlayingItem(p_playlist);
- if ((sys->node != NULL && input == sys->node) ||
- (sys->node == NULL && current != NULL && input == current->p_input))
+ if ((sys->node != NULL && item == sys->node) ||
+ (sys->node == NULL && current != NULL && item == current->p_input))
c = '*';
- else if (current != NULL && current->p_input == input)
+ else if (current != NULL && current->p_input == item)
c = '>';
else
c = ' ';
More information about the vlc-commits
mailing list