Skip to content

Commit

Permalink
Bug 1665211 - Fix a define typo in MPRISServiceHandler. r=emilio
Browse files Browse the repository at this point in the history
  • Loading branch information
MeFisto94 committed Sep 15, 2020
1 parent ee709e6 commit 94fafd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions widget/gtk/MPRISServiceHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ bool MPRISServiceHandler::Open() {
gchar serviceName[256];

InitIdentity();
SprintfLiteral(serviceName, DBUS_MRPIS_SERVICE_NAME ".instance%d", getpid());
SprintfLiteral(serviceName, DBUS_MPRIS_SERVICE_NAME ".instance%d", getpid());
mOwnerId =
g_bus_own_name(G_BUS_TYPE_SESSION, serviceName,
// Enter a waiting queue until this service name is free
Expand Down Expand Up @@ -332,7 +332,7 @@ MPRISServiceHandler::~MPRISServiceHandler() {

void MPRISServiceHandler::Close() {
gchar serviceName[256];
SprintfLiteral(serviceName, DBUS_MRPIS_SERVICE_NAME ".instance%d", getpid());
SprintfLiteral(serviceName, DBUS_MPRIS_SERVICE_NAME ".instance%d", getpid());

OnNameLost(mConnection, serviceName);

Expand Down Expand Up @@ -732,7 +732,7 @@ GVariant* MPRISServiceHandler::GetMetadataAsGVariant() const {
}

void MPRISServiceHandler::EmitEvent(mozilla::dom::MediaControlKey aKey) const {
for (auto& listener : mListeners) {
for (const auto& listener : mListeners) {
listener->OnActionPerformed(mozilla::dom::MediaControlAction(aKey));
}
}
Expand Down
2 changes: 1 addition & 1 deletion widget/gtk/MPRISServiceHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include "nsMimeTypes.h"
#include "nsString.h"

#define DBUS_MRPIS_SERVICE_NAME "org.mpris.MediaPlayer2.firefox"
#define DBUS_MPRIS_SERVICE_NAME "org.mpris.MediaPlayer2.firefox"
#define DBUS_MPRIS_OBJECT_PATH "/org/mpris/MediaPlayer2"
#define DBUS_MPRIS_INTERFACE "org.mpris.MediaPlayer2"
#define DBUS_MPRIS_PLAYER_INTERFACE "org.mpris.MediaPlayer2.Player"
Expand Down

0 comments on commit 94fafd9

Please sign in to comment.