mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
srtpenc: fix failure return values from create_session()
create_session() returns an err_status_t with err_status_ok=0 and err_status_fail=1, so returning TRUE/FALSE is not quite right. https://bugzilla.gnome.org/show_bug.cgi?id=749304
This commit is contained in:
parent
481e1f76e8
commit
9adefac59b
1 changed files with 2 additions and 2 deletions
|
@ -428,7 +428,7 @@ gst_srtp_enc_create_session (GstSrtpEnc * 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"));
|
||||||
return FALSE;
|
return err_status_fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
expected = max_cipher_key_size (filter);
|
expected = max_cipher_key_size (filter);
|
||||||
|
@ -439,7 +439,7 @@ gst_srtp_enc_create_session (GstSrtpEnc * filter)
|
||||||
("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
|
||||||
" bytes", expected, keysize));
|
" bytes", expected, keysize));
|
||||||
return FALSE;
|
return err_status_fail;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue