[vlc-devel] commit: Fixed invalid pointer usage. (Laurent Aimar )

git version control git at videolan.org
Wed Jan 7 20:29:35 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jan  6 23:18:10 2009 +0100| [16c4c21a3b36f2db407bf3677115ec9136461c5a] | committer: Laurent Aimar 

Fixed invalid pointer usage.

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

 modules/gui/skins2/src/vlcproc.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/gui/skins2/src/vlcproc.cpp b/modules/gui/skins2/src/vlcproc.cpp
index e2df571..4d9e862 100644
--- a/modules/gui/skins2/src/vlcproc.cpp
+++ b/modules/gui/skins2/src/vlcproc.cpp
@@ -324,8 +324,6 @@ void VlcProc::refreshInput()
     VarBoolImpl *pVarStopped = (VarBoolImpl*)m_cVarStopped.get();
     VarBoolImpl *pVarPaused = (VarBoolImpl*)m_cVarPaused.get();
 
-    input_thread_t *pInput = getIntf()->p_sys->p_input;
-
     // Update the input
     if( getIntf()->p_sys->p_input == NULL )
     {
@@ -338,6 +336,7 @@ void VlcProc::refreshInput()
         getIntf()->p_sys->p_input = NULL;
     }
 
+    input_thread_t *pInput = getIntf()->p_sys->p_input;
 
     if( pInput && vlc_object_alive (pInput) )
     {




More information about the vlc-devel mailing list