Commit d583a648 authored by Rafaël Carré's avatar Rafaël Carré

libvlc_playlist_get_media_instance(): raise an exception when there is no input, fix #1265

parent 00cd4276
...@@ -225,9 +225,11 @@ libvlc_media_instance_t * libvlc_playlist_get_media_instance( ...@@ -225,9 +225,11 @@ libvlc_media_instance_t * libvlc_playlist_get_media_instance(
p_instance, PL->p_input, p_e ); p_instance, PL->p_input, p_e );
} }
else else
{
/* no active input */ /* no active input */
p_mi = NULL; p_mi = NULL;
libvlc_exception_raise( p_e, "No active input" );
}
vlc_mutex_unlock( &PL->object_lock ); vlc_mutex_unlock( &PL->object_lock );
return p_mi; return p_mi;
......
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