mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
srtpenc: fix over unlocking
Called should call function with lock, and is also responsible for unlocking it later. https://bugzilla.gnome.org/show_bug.cgi?id=749304
This commit is contained in:
parent
6adf3c2499
commit
481e1f76e8
1 changed files with 0 additions and 2 deletions
|
@ -425,7 +425,6 @@ gst_srtp_enc_create_session (GstSrtpEnc * filter)
|
||||||
gsize keysize;
|
gsize keysize;
|
||||||
|
|
||||||
if (filter->key == NULL) {
|
if (filter->key == NULL) {
|
||||||
GST_OBJECT_UNLOCK (filter);
|
|
||||||
GST_ELEMENT_ERROR (filter, LIBRARY, SETTINGS,
|
GST_ELEMENT_ERROR (filter, LIBRARY, SETTINGS,
|
||||||
("Cipher is not NULL, key must be set"),
|
("Cipher is not NULL, key must be set"),
|
||||||
("Cipher is not NULL, key must be set"));
|
("Cipher is not NULL, key must be set"));
|
||||||
|
@ -436,7 +435,6 @@ gst_srtp_enc_create_session (GstSrtpEnc * filter)
|
||||||
keysize = gst_buffer_get_size (filter->key);
|
keysize = gst_buffer_get_size (filter->key);
|
||||||
|
|
||||||
if (expected != keysize) {
|
if (expected != keysize) {
|
||||||
GST_OBJECT_UNLOCK (filter);
|
|
||||||
GST_ELEMENT_ERROR (filter, LIBRARY, SETTINGS,
|
GST_ELEMENT_ERROR (filter, LIBRARY, SETTINGS,
|
||||||
("Master key size is wrong"),
|
("Master key size is wrong"),
|
||||||
("Expected master key of %d bytes, but received %" G_GSIZE_FORMAT
|
("Expected master key of %d bytes, but received %" G_GSIZE_FORMAT
|
||||||
|
|
Loading…
Reference in a new issue