]> git.sesse.net Git - vlc/blobdiff - bin/vlc.c
Maemo: globalhotkeys wouldn't make much sense
[vlc] / bin / vlc.c
index e752b0536d93254210e82eace46c4df7f11b5c8e..3dc0fe4f25d459bce6d0d59da06986c729f7fa95 100644 (file)
--- a/bin/vlc.c
+++ b/bin/vlc.c
@@ -154,7 +154,9 @@ int main( int i_argc, const char *ppsz_argv[] )
             libvlc_exception_clear (&ex);
             pthread_sigmask (SIG_UNBLOCK, &set, NULL);
         }
+#if !defined (HAVE_MAEMO)
         libvlc_add_intf (vlc, "globalhotkeys,none", &ex);
+#endif
         libvlc_exception_clear (&ex);
         libvlc_add_intf (vlc, NULL, &ex);
         libvlc_playlist_play (vlc, -1, 0, NULL, &dummy);
@@ -165,7 +167,7 @@ int main( int i_argc, const char *ppsz_argv[] )
         libvlc_release (vlc);
     }
 
-    for (int i = 0; i < argc; i++)
+    for (int i = 1; i < argc; i++)
         LocaleFree (argv[i]);
 
     return vlc == NULL || libvlc_exception_raised (&ex);