From 14cdbef81ca515606a7433156e0eeed19ad18811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 2 Aug 2024 17:22:21 +0200 Subject: [PATCH] clapper-gtk: Fix metadata ignore for different languages Since missing plugin string is translated, word describing its type (e.g. Decoder) might come before plugin name itself, so we need to check whole text to find substring instead of checking only prefix. Fixes #477 --- src/lib/clapper-gtk/clapper-gtk-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/clapper-gtk/clapper-gtk-video.c b/src/lib/clapper-gtk/clapper-gtk-video.c index f5ff76c4..5cd252af 100644 --- a/src/lib/clapper-gtk/clapper-gtk-video.c +++ b/src/lib/clapper-gtk/clapper-gtk-video.c @@ -1065,7 +1065,7 @@ _player_missing_plugin_cb (ClapperPlayer *player, const gchar *name, { /* Some media files have custom/proprietary metadata, * it should be safe to simply ignore these */ - if (g_str_has_prefix (name, "meta/")) + if (strstr (name, "meta/") != NULL) return; /* XXX: Playbin2 seems to not emit state change here,