mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-12 13:44:56 +02:00
D-Bus: "org.mpris.vlc" adjustement.
Patch from Mirsal, as often.
This commit is contained in:
parent
4261df82c9
commit
360c0d9472
2
NEWS
2
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
|
||||
|
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user