Fixed GStreamer error printing and added option to disable sending cover

art to Discord RPC (Security issue)

GStreamer's GError is a struct, not a char*, with GError->message being
the actual char* message.

Since Subsonic/OpenSubsonic servers don't have a way of sending cover
art unauthenticated, sending cover art to Discord using Discord RPC
exposes an authenticated URL to Discord servers (But only Discord since
it is then proxy'd). Added a config option to disable this behavior and
only use the app icon if the user doesn't feel comfortable enough to
trust Discord (understandable tbh)
This commit is contained in:
2026-01-16 08:47:09 +11:00
parent 1a4e59346e
commit abd00a0761
3 changed files with 14 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ typedef struct {
bool discordrpc_enable; // Enable Discord RPC
int discordrpc_method; // Discord RPC Method (0 = Regular, 1 = DscrdRPC)
bool discordrpc_showSysDetails; // Show 'on OS ARCH VERSION' in RPC
bool discordrpc_showCoverArt; // Show cover art instead of app icon (Leaks credentials to Discord)
// Audio Settings
bool audio_equalizer_enable;
@@ -62,7 +63,7 @@ typedef struct {
char* lv2_parax32_quality_right;
char* lv2_parax32_frequency_left;
char* lv2_parax32_frequency_right;
char* lv2_reverb_filter_name; // LV2 Calf Reeverb LV2 Name
char* lv2_reverb_filter_name; // LV2 Calf Reverb LV2 Name
} configHandler_config_t;
int configHandler_Read(configHandler_config_t** config);