mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 05:20:05 +01:00
m-mpris: Check variant type directly
This commit is contained in:
parent
6c4342123b
commit
91e07861dd
1 changed files with 1 additions and 1 deletions
|
|
@ -238,7 +238,7 @@ static void item_desktop_entry_cb (GObject *source_object, GAsyncResult* res, gp
|
|||
}
|
||||
|
||||
g_variant_get (result, "(v)", &value);
|
||||
if (!g_str_equal(g_variant_get_type_string (value), "s")) {
|
||||
if (!g_variant_is_of_type (value, G_VARIANT_TYPE_STRING)) {
|
||||
wp_info ("%p: bad value for DesktopEntry for '%s'", update->players, update->bus_name);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue