x265enc: Fix deadlock on profile setting failure
Don't miss unlock before returning
This commit is contained in:
parent
e6d21d048a
commit
de6f296d00
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user