]> git.sesse.net Git - vlc/commitdiff
D-Bus: "org.mpris.vlc" adjustement.
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 18 Jul 2007 04:29:02 +0000 (04:29 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 18 Jul 2007 04:29:02 +0000 (04:29 +0000)
Patch from Mirsal, as often.

NEWS
src/libvlc-common.c

diff --git a/NEWS b/NEWS
index 695d1ec8fa86bbae2a1c6874d339706df4d61bf8..d0cf308cd40d6de7d01c4bbdadb99d117713c578 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -96,7 +96,7 @@ Interfaces:
    * Improved user interaction
    * Improved mouse gestures
  * Unix
-   * Allow only one running instance, using D-Bus interface (experimental).
+   * Allow only one running instance, using D-Bus interface.
    * D-Bus Interface (experimental) implements the MPRIS 
      (Media Player Remote Interfacing specification), a common dbus control 
      interface for media players that intends to become an xdg standard when 
index 57a2a6a101e880460e0325fb9acc16d5606f3ad4..a2f93e9050c72ee6f19cec0ecda75d279abae89a 100644 (file)
@@ -605,13 +605,13 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
         }
         else
         {
-            /* check if a Media Player is available
+            /* check if VLC is available on the bus
              * if not: D-Bus control is not enabled on the other
              * instance and we can't pass MRLs to it */
             DBusMessage *p_test_msg = NULL;
             DBusMessage *p_test_reply = NULL;
             p_test_msg =  dbus_message_new_method_call(
-                    "org.freedesktop.MediaPlayer", "/",
+                    "org.mpris.vlc", "/",
                     "org.freedesktop.MediaPlayer", "Identity" );
             /* block until a reply arrives */
             p_test_reply = dbus_connection_send_with_reply_and_block(
@@ -640,7 +640,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
                             ppsz_argv[i_input] );
 
                     p_dbus_msg = dbus_message_new_method_call(
-                            "org.freedesktop.MediaPlayer", "/TrackList",
+                            "org.mpris.vlc", "/TrackList",
                             "org.freedesktop.MediaPlayer", "AddTrack" );
 
                     if ( NULL == p_dbus_msg )