[vlc-commits] vlc: print an error if not starting any interface

Rémi Denis-Courmont git at videolan.org
Sun Mar 11 01:09:44 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 10 22:14:54 2018 +0200| [20bd2ef03b9261fbc69ec208097f0ca2b0420066] | committer: Rémi Denis-Courmont

vlc: print an error if not starting any interface

Rather than failing and existing silently.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=20bd2ef03b9261fbc69ec208097f0ca2b0420066
---

 bin/vlc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/vlc.c b/bin/vlc.c
index 046c1b7cc7..471ab5f423 100644
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -241,7 +241,10 @@ int main(int argc, const char *argv[])
     libvlc_add_intf (vlc, "globalhotkeys,none");
 #endif
     if (libvlc_add_intf (vlc, NULL))
+    {
+        fprintf(stderr, "%s: cannot start any interface. Exiting.\n", argv[0]);
         goto out;
+    }
 
     libvlc_playlist_play (vlc, -1, 0, NULL);
 



More information about the vlc-commits mailing list