summaryrefslogtreecommitdiff
path: root/ext/opus/gstopusenc.c
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-06-15 10:32:39 +0100
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-06-15 10:39:48 +0100
commitde739ee1d1883033add89381d01d733891d5e5ad (patch)
tree8d47b1b52d254febc07b384f398cc19b55f3a7a3 /ext/opus/gstopusenc.c
parentad4da8dd0e01a1e60213b5dbb2bb0c03a010e542 (diff)
downloadgstreamer-plugins-base-de739ee1d1883033add89381d01d733891d5e5ad.tar.gz
opusenc: add missing mutex unlock on error path
Diffstat (limited to 'ext/opus/gstopusenc.c')
-rw-r--r--ext/opus/gstopusenc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c
index 861bd415d..5386286ff 100644
--- a/ext/opus/gstopusenc.c
+++ b/ext/opus/gstopusenc.c
@@ -621,8 +621,10 @@ gst_opus_enc_set_format (GstAudioEncoder * benc, GstAudioInfo * info)
opus_multistream_encoder_destroy (enc->state);
enc->state = NULL;
}
- if (!gst_opus_enc_setup (enc))
+ if (!gst_opus_enc_setup (enc)) {
+ g_mutex_unlock (enc->property_lock);
return FALSE;
+ }
enc->frame_samples = gst_opus_enc_get_frame_samples (enc);