Skip to content
Snippets Groups Projects
Commit 23167a39 authored by Thomas Guillem's avatar Thomas Guillem Committed by Steve Lhomme
Browse files

lib: print the initialisation error

parent 60e3c2f4
No related branches found
No related tags found
1 merge request!4911lib: print the initialisation error
Pipeline #435880 passed with stage
in 28 minutes and 49 seconds
......@@ -65,9 +65,11 @@ libvlc_instance_t * libvlc_new( int argc, const char *const *argv )
if (unlikely (p_libvlc_int == NULL))
goto error;
if (libvlc_InternalInit( p_libvlc_int, argc + 1, my_argv ))
int ret = libvlc_InternalInit( p_libvlc_int, argc + 1, my_argv );
if (ret != VLC_SUCCESS)
{
libvlc_InternalDestroy( p_libvlc_int );
libvlc_printerr("%s", vlc_strerror_c(-ret));
goto error;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment