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
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);
18 - if (!gst_opus_enc_setup (enc))
19 + if (!gst_opus_enc_setup (enc)) {
20 + g_mutex_unlock (enc->property_lock);
24 enc->frame_samples = gst_opus_enc_get_frame_samples (enc);