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

VLC: exit if the requested interface could not be started

parent c035e841
...@@ -164,9 +164,11 @@ int main( int i_argc, const char *ppsz_argv[] ) ...@@ -164,9 +164,11 @@ int main( int i_argc, const char *ppsz_argv[] )
#if !defined (HAVE_MAEMO) #if !defined (HAVE_MAEMO)
libvlc_add_intf (vlc, "globalhotkeys,none"); libvlc_add_intf (vlc, "globalhotkeys,none");
#endif #endif
libvlc_add_intf (vlc, NULL); if (libvlc_add_intf (vlc, NULL) == 0)
libvlc_playlist_play (vlc, -1, 0, NULL, &dummy); {
libvlc_wait (vlc); libvlc_playlist_play (vlc, -1, 0, NULL, &dummy);
libvlc_wait (vlc);
}
libvlc_release (vlc); libvlc_release (vlc);
} }
......
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