Commit 20bd2ef0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc: print an error if not starting any interface

Rather than failing and existing silently.
parent d112b475
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment