Bug 1615270 - [Media-Control Linux] MPRIS: Correctly emit the PropertyChange Event on the Player Interface (https://specifications.freedesktop.org/mpris-spec/latest/Player_Interface.html), r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D63811

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Marc Streckfuss 2020-02-23 22:58:39 +00:00
Родитель 9de9318c48
Коммит 66937693fb
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -586,7 +586,8 @@ void MPRISServiceHandler::SetPlaybackState(dom::PlaybackState aState) {
g_dbus_connection_emit_signal(
mConnection, nullptr, DBUS_MPRIS_OBJECT_PATH,
"org.freedesktop.DBus.Properties", "PropertiesChanged",
g_variant_new("(sa{sv}as)", "org.mpris.MediaPlayer2", &builder, nullptr),
g_variant_new("(sa{sv}as)", "org.mpris.MediaPlayer2.Player", &builder,
nullptr),
nullptr);
}