[vlc-commits] commit: ncurses Eject(): initialize psz_device correctly ( Rafaël Carré )

git at videolan.org git at videolan.org
Tue Oct 26 18:28:41 CEST 2010


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Tue Oct 26 18:27:55 2010 +0200| [727bf3ce365e04357a8ac6c675040df448d90fb0] | committer: Rafaël Carré 

ncurses Eject(): initialize psz_device correctly

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

 modules/gui/ncurses.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c
index b4444eb..03dfe9a 100644
--- a/modules/gui/ncurses.c
+++ b/modules/gui/ncurses.c
@@ -1410,9 +1410,7 @@ static void Eject(intf_thread_t *p_intf)
     }
 
     psz_name = playlist_CurrentPlayingItem(p_playlist)->p_input->psz_name;
-
-    if (psz_name)
-        psz_device = GetDiscDevice(p_intf, psz_name);
+    psz_device = psz_name ? GetDiscDevice(p_intf, psz_name) : NULL;
 
     PL_UNLOCK;
 



More information about the vlc-commits mailing list