From e3b8b7fa80320f0c8bbc84d4364ea83b5991db20 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Wed, 29 Dec 2021 20:24:51 +0100 Subject: PictureFlow: Utilize "Current Playlist" menu (+ GS fixes) When appending tracks, they were always inserted last. You can now choose from the usual options offered by the "Current Playlst" context menu to queue or to insert tracks at the requested position. The splash after appending that forced you to wait for 2s has been eliminated. Also fixes crashes on targets that use the grey_core lib if a splash showed up when playback was started, e.g. LANG_PLAYLIST_CONTROL_ACCESS_ERROR, or when PictureFlow quit. Change-Id: I661c59057b5315ba793ee1674f7a2ea1ffd7968d --- apps/plugin.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index 38d44530b0..d4d86e50bd 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -110,6 +110,7 @@ int plugin_open(const char *plugin, const char *parameter); #include "rbpaths.h" #include "core_alloc.h" #include "screen_access.h" +#include "onplay.h" #ifdef HAVE_ALBUMART #include "albumart.h" @@ -154,7 +155,7 @@ int plugin_open(const char *plugin, const char *parameter); #define PLUGIN_MAGIC 0x526F634B /* RocK */ /* increase this every time the api struct changes */ -#define PLUGIN_API_VERSION 247 +#define PLUGIN_API_VERSION 248 /* update this to latest version if a change to the api struct breaks backwards compatibility (and please take the opportunity to sort in any @@ -931,6 +932,7 @@ struct plugin_api { int (*playlist_insert_playlist)(struct playlist_info* playlist, const char *filename, int position, bool queue); int (*battery_current)(void); + void (*onplay_show_playlist_menu)(const char* path, void (*playlist_insert_cb)); }; /* plugin header */ -- cgit v1.2.3