[vlc-commits] darwinvlc: Print out if no interface can be found

David Fuhrmann git at videolan.org
Sat Mar 24 16:58:03 CET 2018


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Mar 24 16:35:33 2018 +0100| [724747fab53c67c3e1e1ca2e48ad7cd40ef7c387] | committer: David Fuhrmann

darwinvlc: Print out if no interface can be found

Analog to 20bd2ef03b9261fbc69ec208097f0ca2b0420066.

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

 bin/darwinvlc.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/darwinvlc.m b/bin/darwinvlc.m
index e3da5722a0..df4c52c7f4 100644
--- a/bin/darwinvlc.m
+++ b/bin/darwinvlc.m
@@ -288,8 +288,10 @@ int main(int i_argc, const char *ppsz_argv[])
 
     libvlc_add_intf(vlc, "hotkeys,none");
 
-    if (libvlc_add_intf(vlc, NULL))
+    if (libvlc_add_intf(vlc, NULL)) {
+        fprintf(stderr, "VLC cannot start any interface. Exiting.\n");
         goto out;
+    }
     libvlc_playlist_play(vlc, -1, 0, NULL);
 
     /*



More information about the vlc-commits mailing list