mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-27 00:40:04 +01:00
m-mpris: Only initialise the builder once
This commit is contained in:
parent
3a6f2c1e90
commit
ded213093d
1 changed files with 1 additions and 3 deletions
|
|
@ -531,9 +531,7 @@ wp_mpris_plugin_disable (WpPlugin * plugin)
|
|||
static gpointer
|
||||
wp_mpris_plugin_get_players (WpMprisPlugin *self)
|
||||
{
|
||||
g_auto (GVariantBuilder) b = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE_ARRAY);
|
||||
|
||||
g_variant_builder_init (&b, G_VARIANT_TYPE ("av"));
|
||||
g_auto (GVariantBuilder) b = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("av"));
|
||||
|
||||
if (self->players) {
|
||||
g_autoptr (GMutexLocker) locker = g_mutex_locker_new (&self->players->lock);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue