mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
opusenc: add missing mutex unlock on error path
This commit is contained in:
parent
76ec96a364
commit
742f26326f
1 changed files with 3 additions and 1 deletions
|
@ -621,8 +621,10 @@ gst_opus_enc_set_format (GstAudioEncoder * benc, GstAudioInfo * info)
|
||||||
opus_multistream_encoder_destroy (enc->state);
|
opus_multistream_encoder_destroy (enc->state);
|
||||||
enc->state = NULL;
|
enc->state = NULL;
|
||||||
}
|
}
|
||||||
if (!gst_opus_enc_setup (enc))
|
if (!gst_opus_enc_setup (enc)) {
|
||||||
|
g_mutex_unlock (enc->property_lock);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
enc->frame_samples = gst_opus_enc_get_frame_samples (enc);
|
enc->frame_samples = gst_opus_enc_get_frame_samples (enc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue