pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / encumbered / gst-plugins-bad / patches / 0020-opusenc-add-missing-mutex-unlock-on-error-path.patch
blob1d36d94b9df07a07f0d4243b7031f93c2f26c0ff
1 From aba3143b9e5986f5ffef841864b3942013120de0 Mon Sep 17 00:00:00 2001
2 From: Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>
3 Date: Fri, 15 Jun 2012 10:32:39 +0100
4 Subject: [PATCH 20/20] opusenc: add missing mutex unlock on error path
6 ---
7 ext/opus/gstopusenc.c | 4 +++-
8 1 file changed, 3 insertions(+), 1 deletion(-)
10 diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c
11 index 80b3fe8..4c05028 100644
12 --- a/ext/opus/gstopusenc.c
13 +++ b/ext/opus/gstopusenc.c
14 @@ -635,8 +635,10 @@ gst_opus_enc_set_format (GstAudioEncoder * benc, GstAudioInfo * info)
15 opus_multistream_encoder_destroy (enc->state);
16 enc->state = NULL;
18 - if (!gst_opus_enc_setup (enc))
19 + if (!gst_opus_enc_setup (enc)) {
20 + g_mutex_unlock (enc->property_lock);
21 return FALSE;
22 + }
24 enc->frame_samples = gst_opus_enc_get_frame_samples (enc);
26 --
27 1.7.10.4