Commit 16c4c21a authored by Laurent Aimar's avatar Laurent Aimar

Fixed invalid pointer usage.

parent 50dabf20
...@@ -324,8 +324,6 @@ void VlcProc::refreshInput() ...@@ -324,8 +324,6 @@ void VlcProc::refreshInput()
VarBoolImpl *pVarStopped = (VarBoolImpl*)m_cVarStopped.get(); VarBoolImpl *pVarStopped = (VarBoolImpl*)m_cVarStopped.get();
VarBoolImpl *pVarPaused = (VarBoolImpl*)m_cVarPaused.get(); VarBoolImpl *pVarPaused = (VarBoolImpl*)m_cVarPaused.get();
input_thread_t *pInput = getIntf()->p_sys->p_input;
// Update the input // Update the input
if( getIntf()->p_sys->p_input == NULL ) if( getIntf()->p_sys->p_input == NULL )
{ {
...@@ -338,6 +336,7 @@ void VlcProc::refreshInput() ...@@ -338,6 +336,7 @@ void VlcProc::refreshInput()
getIntf()->p_sys->p_input = NULL; getIntf()->p_sys->p_input = NULL;
} }
input_thread_t *pInput = getIntf()->p_sys->p_input;
if( pInput && vlc_object_alive (pInput) ) if( pInput && vlc_object_alive (pInput) )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment