x265enc: Fix deadlock on profile setting failure

Don't miss unlock before returning
This commit is contained in:
Seungha Yang 2019-08-09 12:03:34 +09:00
parent e6d21d048a
commit de6f296d00

View file

@ -894,6 +894,7 @@ gst_x265_enc_init_encoder (GstX265Enc * encoder)
encoder->peer_profile) < 0) {
GST_ERROR_OBJECT (encoder, "Failed to apply profile %s",
encoder->peer_profile);
GST_OBJECT_UNLOCK (encoder);
return FALSE;
}