diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2015-05-13 12:31:44 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-05-13 12:32:53 +0100 |
commit | 9adefac59b262f7ec44ec1ececa00a2c69dd98e2 (patch) | |
tree | d0217586d8023b00a9f21c5aa58bf82f6e27154a /ext/srtp | |
parent | 481e1f76e84e272fee49c9c8ee8d1af28f916c00 (diff) |
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
Diffstat (limited to 'ext/srtp')
-rw-r--r-- | ext/srtp/gstsrtpenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/srtp/gstsrtpenc.c b/ext/srtp/gstsrtpenc.c index f5e3f13f7..8489da42b 100644 --- a/ext/srtp/gstsrtpenc.c +++ b/ext/srtp/gstsrtpenc.c @@ -428,7 +428,7 @@ gst_srtp_enc_create_session (GstSrtpEnc * filter) GST_ELEMENT_ERROR (filter, LIBRARY, SETTINGS, ("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); @@ -439,7 +439,7 @@ gst_srtp_enc_create_session (GstSrtpEnc * filter) ("Master key size is wrong"), ("Expected master key of %d bytes, but received %" G_GSIZE_FORMAT " bytes", expected, keysize)); - return FALSE; + return err_status_fail; } } |