Commit 56d55988 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: getVout() avoid a crash.

parent a7c94c6a
......@@ -210,7 +210,7 @@ public:
vout_thread_t * getVout()
{
vout_thread_t **pp_vout; int i_vout;
if( !input_Control( p_input, INPUT_GET_VOUTS, &pp_vout, &i_vout ) )
if( p_input && !input_Control( p_input, INPUT_GET_VOUTS, &pp_vout, &i_vout ) )
{
for( int i = 1; i < i_vout; i++ ) vlc_object_release( pp_vout[i]);
vout_thread_t *p_tmp = pp_vout[0];
......
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