Commit 5c5888a1 authored by Wonchul Lee's avatar Wonchul Lee Committed by Sebastian Dröge

av1enc: Release lock when failing to initialize

Add to missing unlock when failing to initialize encoder.
parent 942445b0
......@@ -657,6 +657,7 @@ gst_av1_enc_set_format (GstVideoEncoder * encoder, GstVideoCodecState * state)
if (aom_codec_enc_init (&av1enc->encoder, av1enc_class->codec_algo,
&av1enc->aom_cfg, 0)) {
gst_av1_codec_error (&av1enc->encoder, "Failed to initialize encoder");
g_mutex_unlock (&av1enc->encoder_lock);
return FALSE;
}
av1enc->encoder_inited = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment