summaryrefslogtreecommitdiff
path: root/ext/srtp
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-02-08 19:59:43 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-02-08 19:59:43 +0100
commit15e0db90e827ade350013f2434ff5779b3676fc7 (patch)
tree778774e78ff00585e82b6487f106219b5e2811b5 /ext/srtp
parent43e73bc3e989d90e7e963195c58d0ed92e0865c4 (diff)
srtpdec: Fix comparison compiler warning
error: comparison of constant -1 with expression of type 'GstSrtpCipherType' is always false
Diffstat (limited to 'ext/srtp')
-rw-r--r--ext/srtp/gstsrtpdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/srtp/gstsrtpdec.c b/ext/srtp/gstsrtpdec.c
index 29ee9acd5..68620f8ab 100644
--- a/ext/srtp/gstsrtpdec.c
+++ b/ext/srtp/gstsrtpdec.c
@@ -410,8 +410,8 @@ get_stream_from_caps (GstSrtpDec * filter, GstCaps * caps, guint32 ssrc)
rtcp_cipher);
stream->rtcp_auth = enum_value_from_nick (GST_TYPE_SRTP_AUTH_TYPE, rtcp_auth);
- if (stream->rtp_cipher == -1 || stream->rtp_auth == -1 ||
- stream->rtcp_cipher == -1 || stream->rtcp_auth == -1) {
+ if ((gint) stream->rtp_cipher == -1 || (gint) stream->rtp_auth == -1 ||
+ (gint) stream->rtcp_cipher == -1 || (gint) stream->rtcp_auth == -1) {
GST_WARNING_OBJECT (filter, "Invalid caps for stream,"
" unknown cipher or auth type");
goto error;