Skip to content

Commit

Permalink
apply @Kennyyy24 OMXControl.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
xk committed Nov 27, 2016
1 parent 314cc4e commit 65299f9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions OMXControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,17 +695,15 @@ OMXControlResult OMXControl::handle_event(DBusMessage *m)
}
else if (dbus_message_is_method_call(m, DBUS_INTERFACE_PROPERTIES, "Mute"))
{
audio->SetMute(true);
dbus_respond_ok(m);
deprecatedMessage();
return KeyConfig::ACTION_BLANK;
return KeyConfig::ACTION_MUTE;
}
else if (dbus_message_is_method_call(m, DBUS_INTERFACE_PROPERTIES, "Unmute"))
{
audio->SetMute(false);
dbus_respond_ok(m);
deprecatedMessage();
return KeyConfig::ACTION_BLANK;
return KeyConfig::ACTION_UNMUTE;
}
else if (dbus_message_is_method_call(m, DBUS_INTERFACE_PROPERTIES, "Position"))
{
Expand Down Expand Up @@ -901,15 +899,13 @@ OMXControlResult OMXControl::handle_event(DBusMessage *m)
}
else if (dbus_message_is_method_call(m, OMXPLAYER_DBUS_INTERFACE_PLAYER, "Mute"))
{
audio->SetMute(true);
dbus_respond_ok(m);
return KeyConfig::ACTION_BLANK;
return KeyConfig::ACTION_MUTE;
}
else if (dbus_message_is_method_call(m, OMXPLAYER_DBUS_INTERFACE_PLAYER, "Unmute"))
{
audio->SetMute(false);
dbus_respond_ok(m);
return KeyConfig::ACTION_BLANK;
return KeyConfig::ACTION_UNMUTE;
}
else if (dbus_message_is_method_call(m, OMXPLAYER_DBUS_INTERFACE_PLAYER, "ListSubtitles"))
{
Expand Down

0 comments on commit 65299f9

Please sign in to comment.