]> git.sesse.net Git - vlc/commitdiff
Fixed invalid pointer usage.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 6 Jan 2009 22:18:10 +0000 (23:18 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 7 Jan 2009 19:29:17 +0000 (20:29 +0100)
modules/gui/skins2/src/vlcproc.cpp

index e2df571d4e2bed34758b141e223cd203703aa227..4d9e862c9e3aeeb43f6450b1cff815173c5ba4d8 100644 (file)
@@ -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) )
     {