mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-09 07:28:41 +02: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
|
static gpointer
|
||||||
wp_mpris_plugin_get_players (WpMprisPlugin *self)
|
wp_mpris_plugin_get_players (WpMprisPlugin *self)
|
||||||
{
|
{
|
||||||
g_auto (GVariantBuilder) b = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE_ARRAY);
|
g_auto (GVariantBuilder) b = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE ("av"));
|
||||||
|
|
||||||
g_variant_builder_init (&b, G_VARIANT_TYPE ("av"));
|
|
||||||
|
|
||||||
if (self->players) {
|
if (self->players) {
|
||||||
g_autoptr (GMutexLocker) locker = g_mutex_locker_new (&self->players->lock);
|
g_autoptr (GMutexLocker) locker = g_mutex_locker_new (&self->players->lock);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue