Commit e972e893 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix libvlc video functions when there is no input (fixes #3812)

(cherry picked from commit 67bc4a20)
parent 0db6b5e5
...@@ -48,7 +48,10 @@ static vout_thread_t **GetVouts( libvlc_media_player_t *p_mi, size_t *n ) ...@@ -48,7 +48,10 @@ static vout_thread_t **GetVouts( libvlc_media_player_t *p_mi, size_t *n )
{ {
input_thread_t *p_input = libvlc_get_input_thread( p_mi ); input_thread_t *p_input = libvlc_get_input_thread( p_mi );
if( !p_input ) if( !p_input )
{
*n = 0;
return NULL; return NULL;
}
vout_thread_t **pp_vouts; vout_thread_t **pp_vouts;
if (input_Control( p_input, INPUT_GET_VOUTS, &pp_vouts, n)) if (input_Control( p_input, INPUT_GET_VOUTS, &pp_vouts, n))
......
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