]> git.sesse.net Git - vlc/commitdiff
Fix one-instance
authorRafaël Carré <rafael.carre@gmail.com>
Fri, 20 May 2011 07:29:44 +0000 (03:29 -0400)
committerRafaël Carré <rafael.carre@gmail.com>
Fri, 20 May 2011 20:12:17 +0000 (16:12 -0400)
Identity is not a method but a property
"" is not a valid object path

src/libvlc.c

index d26b0d16c97c2c7b3dff33dc94cc66426b33440d..33fa6e56c77e3f6ee0eaf80dab17a49811587376 100644 (file)
@@ -538,7 +538,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
 
             p_test_msg =  dbus_message_new_method_call(
                     "org.mpris.MediaPlayer2.vlc", "/org/mpris/MediaPlayer2",
-                    "org.mpris.MediaPlayer2",     "Identity" );
+                    "org.freedesktop.DBus.Introspectable", "Introspect" );
 
             /* block until a reply arrives */
             p_test_reply = dbus_connection_send_with_reply_and_block(
@@ -573,7 +573,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
 
                     /* We need to resolve relative paths in this instance */
                     char *psz_mrl = make_URI( ppsz_argv[i_input], NULL );
-                    char *psz_after_track = "";
+                    char *psz_after_track = "/";
 
                     if( psz_mrl == NULL )
                         continue;