mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
av1enc: Release lock when failing to initialize
Add to missing unlock when failing to initialize encoder.
This commit is contained in:
parent
942445b0ac
commit
5c5888a1aa
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue