Commit 6e8a32ce authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

D-Bus: The MPRIS uses a new services behavior to allow multiple mpris-enabled

players to run simultaneously.
Thus the dbus service name is now org.mpris.vlc instead of org.freedesktop.MediaPlayer.
Patch by Mirsal ENNAIME.
parent 2a8cbec0
......@@ -326,7 +326,7 @@ DBUS_METHOD( Disconnect )
DBusError error;
int i;
dbus_error_init( &error );
i = dbus_bus_release_name( p_conn, "org.freedesktop.MediaPlayer", &error );
i = dbus_bus_release_name( p_conn, "org.mpris.vlc", &error );
if( ( i == -1 ) && ( dbus_error_is_set( &error ) ) )
{
msg_Err( (vlc_object_t*) p_this, "D-Bus disconnection failed : %s\n",
......@@ -737,10 +737,10 @@ static int Open( vlc_object_t *p_this )
}
/* register a well-known name on the bus */
dbus_bus_request_name( p_conn, "org.freedesktop.MediaPlayer", 0, &error );
dbus_bus_request_name( p_conn, "org.mpris.vlc", 0, &error );
if( dbus_error_is_set( &error ) )
{
msg_Err( p_this, "Error requesting org.freedesktop.MediaPlayer service:" " %s\n", error.message );
msg_Err( p_this, "Error requesting org.mpris.vlc service:" " %s\n", error.message );
dbus_error_free( &error );
free( p_sys );
return VLC_EGENERIC;
......
......@@ -25,7 +25,7 @@
/* DBUS IDENTIFIERS */
/* name registered on the session bus */
#define VLC_DBUS_SERVICE "org.freedesktop.MediaPlayer"
#define VLC_DBUS_SERVICE "org.mpris.vlc"
#define VLC_DBUS_INTERFACE "org.freedesktop.MediaPlayer"
#define VLC_DBUS_ROOT_PATH "/"
#define VLC_DBUS_PLAYER_PATH "/Player"
......
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