We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f244246 commit 1576bb7Copy full SHA for 1576bb7
plugins/hotkeys/hotkeys.c
@@ -576,6 +576,13 @@ hotkeys_reset (void) {
576
#endif
577
}
578
579
+// Some 3rd party plugins (mpris) rely on hotkeys plugin having non-null get_actions method.
580
+// It's already patched, but let's be nice to people who didn't update yet.
581
+static DB_plugin_action_t *
582
+hotkeys_get_actions (DB_playItem_t *it) {
583
+ return NULL;
584
+}
585
+
586
587
// define plugin interface
588
static DB_hotkeys_plugin_t plugin = {
@@ -615,4 +622,5 @@ static DB_hotkeys_plugin_t plugin = {
615
622
.get_action_for_keycombo = hotkeys_get_action_for_keycombo,
616
623
.reset = hotkeys_reset,
617
624
.misc.plugin.message = hotkeys_message,
625
+ .misc.plugin.get_actions = hotkeys_get_actions,
618
626
};
0 commit comments