[vlc-commits] [Git][videolan/vlc][master] lib: print the initialisation error

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Feb 9 10:11:42 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
23167a39 by Thomas Guillem at 2024-02-09T09:56:53+00:00
lib: print the initialisation error

- - - - -


1 changed file:

- lib/core.c


Changes:

=====================================
lib/core.c
=====================================
@@ -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;
     }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/23167a399a2b133d77b93c3814df8eb0def4a6e5

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/23167a399a2b133d77b93c3814df8eb0def4a6e5
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list