[vlc-devel] commit: VLC: exit if the requested interface could not be started ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Jan 23 18:05:54 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 23 19:04:53 2010 +0200| [a8421c5730af2951f205d018de90f4a234bda4c9] | committer: Rémi Denis-Courmont
VLC: exit if the requested interface could not be started
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a8421c5730af2951f205d018de90f4a234bda4c9
---
bin/vlc.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/bin/vlc.c b/bin/vlc.c
index 2633f84..de2b878 100644
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -164,9 +164,11 @@ int main( int i_argc, const char *ppsz_argv[] )
#if !defined (HAVE_MAEMO)
libvlc_add_intf (vlc, "globalhotkeys,none");
#endif
- libvlc_add_intf (vlc, NULL);
- libvlc_playlist_play (vlc, -1, 0, NULL, &dummy);
- libvlc_wait (vlc);
+ if (libvlc_add_intf (vlc, NULL) == 0)
+ {
+ libvlc_playlist_play (vlc, -1, 0, NULL, &dummy);
+ libvlc_wait (vlc);
+ }
libvlc_release (vlc);
}
More information about the vlc-devel
mailing list