From 469f7af2105e0512c809e7380ff2d29d266dd75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Date: Fri, 3 Feb 2023 04:06:45 +0000 Subject: [PATCH] ao_pipewire: remove unnecessary braces --- audio/out/ao_pipewire.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c index a106cc35cf..3ef77e9481 100644 --- a/audio/out/ao_pipewire.c +++ b/audio/out/ao_pipewire.c @@ -286,9 +286,8 @@ static void uninit(struct ao *ao) if (p->stream) pw_stream_destroy(p->stream); p->stream = NULL; - if (p->core) { + if (p->core) pw_context_destroy(pw_core_get_context(p->core)); - } p->core = NULL; if (p->loop) pw_thread_loop_destroy(p->loop); @@ -750,9 +749,8 @@ static int hotplug_init(struct ao *ao) spa_list_init(&priv->hotplug.sinks); priv->hotplug.registry = pw_core_get_registry(priv->core, PW_VERSION_REGISTRY, 0); - if (!priv->hotplug.registry) { + if (!priv->hotplug.registry) goto error; - } if (pw_registry_add_listener(priv->hotplug.registry, &priv->hotplug.registry_listener, &hotplug_registry_events, ao) < 0) { pw_proxy_destroy((struct pw_proxy *)priv->hotplug.registry);