summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Weißschuh <thomas@t-8ch.de>2022-12-08 01:14:15 +0000
committersfan5 <sfan5@live.de>2023-01-24 15:56:56 +0100
commitdadcb2e61408a3589eab8eb7a4d421d7641eb899 (patch)
tree436bf928f988ee168f8e0d8a9ec2863f256a2311
parentf8b71708714cae027df9dfbe0af64c02eafea99a (diff)
downloadmpv-dadcb2e61408a3589eab8eb7a4d421d7641eb899.tar.bz2
mpv-dadcb2e61408a3589eab8eb7a4d421d7641eb899.tar.xz
ao_pipewire: destroy context on connection failure
-rw-r--r--audio/out/ao_pipewire.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/out/ao_pipewire.c b/audio/out/ao_pipewire.c
index 9df14a4355..288a815eda 100644
--- a/audio/out/ao_pipewire.c
+++ b/audio/out/ao_pipewire.c
@@ -470,6 +470,7 @@ static int pipewire_init_boilerplate(struct ao *ao)
if (!p->core) {
MP_WARN(ao, "Could not connect to context '%s': %s\n",
p->options.remote, strerror(errno));
+ pw_context_destroy(context);
goto error;
}