mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
srtpdec: Fix comparison compiler warning
error: comparison of constant -1 with expression of type 'GstSrtpCipherType' is always false
This commit is contained in:
parent
43e73bc3e9
commit
15e0db90e8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue