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

Rémi Denis-Courmont git at videolan.org
Sat Mar 10 21:20:56 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 10 22:14:54 2018 +0200| [64bc63d13a9b7223c8cceddbd24aa817dea9f002] | 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=64bc63d13a9b7223c8cceddbd24aa817dea9f002
---

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

diff --git a/bin/vlc.c b/bin/vlc.c
index 9b4631ce35..62e10ae682 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