mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
x265enc: Fix deadlock on profile setting failure
Don't miss unlock before returning
This commit is contained in:
parent
e6d21d048a
commit
de6f296d00
1 changed files with 1 additions and 0 deletions
|
@ -894,6 +894,7 @@ gst_x265_enc_init_encoder (GstX265Enc * encoder)
|
||||||
encoder->peer_profile) < 0) {
|
encoder->peer_profile) < 0) {
|
||||||
GST_ERROR_OBJECT (encoder, "Failed to apply profile %s",
|
GST_ERROR_OBJECT (encoder, "Failed to apply profile %s",
|
||||||
encoder->peer_profile);
|
encoder->peer_profile);
|
||||||
|
GST_OBJECT_UNLOCK (encoder);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue