Commit 360c0d94 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

D-Bus: "org.mpris.vlc" adjustement.

Patch from Mirsal, as often.
parent 4261df82
...@@ -96,7 +96,7 @@ Interfaces: ...@@ -96,7 +96,7 @@ Interfaces:
* Improved user interaction * Improved user interaction
* Improved mouse gestures * Improved mouse gestures
* Unix * 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 * D-Bus Interface (experimental) implements the MPRIS
(Media Player Remote Interfacing specification), a common dbus control (Media Player Remote Interfacing specification), a common dbus control
interface for media players that intends to become an xdg standard when interface for media players that intends to become an xdg standard when
......
...@@ -605,13 +605,13 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] ) ...@@ -605,13 +605,13 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
} }
else 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 * if not: D-Bus control is not enabled on the other
* instance and we can't pass MRLs to it */ * instance and we can't pass MRLs to it */
DBusMessage *p_test_msg = NULL; DBusMessage *p_test_msg = NULL;
DBusMessage *p_test_reply = NULL; DBusMessage *p_test_reply = NULL;
p_test_msg = dbus_message_new_method_call( p_test_msg = dbus_message_new_method_call(
"org.freedesktop.MediaPlayer", "/", "org.mpris.vlc", "/",
"org.freedesktop.MediaPlayer", "Identity" ); "org.freedesktop.MediaPlayer", "Identity" );
/* block until a reply arrives */ /* block until a reply arrives */
p_test_reply = dbus_connection_send_with_reply_and_block( 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[] ) ...@@ -640,7 +640,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, char *ppsz_argv[] )
ppsz_argv[i_input] ); ppsz_argv[i_input] );
p_dbus_msg = dbus_message_new_method_call( p_dbus_msg = dbus_message_new_method_call(
"org.freedesktop.MediaPlayer", "/TrackList", "org.mpris.vlc", "/TrackList",
"org.freedesktop.MediaPlayer", "AddTrack" ); "org.freedesktop.MediaPlayer", "AddTrack" );
if ( NULL == p_dbus_msg ) if ( NULL == p_dbus_msg )
......
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