summaryrefslogtreecommitdiffstats
path: root/audio/out
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2023-02-03 04:06:45 +0000
committerPhilip Langdale <github.philipl@overt.org>2023-02-03 09:18:37 -0800
commit469f7af2105e0512c809e7380ff2d29d266dd75d (patch)
treeee910f5ab819509eea02f4beaa9d1432da52f16a /audio/out
parentbc7a1262376677b8185daebf7db7c1cc5b30762f (diff)
downloadmpv-469f7af2105e0512c809e7380ff2d29d266dd75d.tar.bz2
mpv-469f7af2105e0512c809e7380ff2d29d266dd75d.tar.xz
ao_pipewire: remove unnecessary braces
Diffstat (limited to 'audio/out')
-rw-r--r--audio/out/ao_pipewire.c6
1 files 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);