srtpdec: Lower severity of srtp_err_status_replay_fail

AFAIU this happens when encountering retransmissions. Don't print a
warning for these packets.
This commit is contained in:
Jan Alexander Steffens (heftig) 2019-03-15 11:19:03 +01:00
parent 8ef4d01f60
commit deb2f11fe2
No known key found for this signature in database
GPG key ID: DE5E0C5F25941CA5
2 changed files with 6 additions and 1 deletions

View file

@ -72,6 +72,7 @@
# define srtp_err_status_t err_status_t
# define srtp_err_status_ok err_status_ok
# define srtp_err_status_bad_param err_status_bad_param
# define srtp_err_status_replay_fail err_status_replay_fail
# define srtp_err_status_key_expired err_status_key_expired
# define srtp_err_status_auth_fail err_status_auth_fail
# define srtp_err_status_cipher_fail err_status_cipher_fail

View file

@ -1387,6 +1387,10 @@ unprotect:
case srtp_err_status_ok:
/* success! */
break;
case srtp_err_status_replay_fail:
GST_INFO_OBJECT (filter,
"Dropping replayed packet, probably retransmission");
goto err;
case srtp_err_status_key_expired:{
GstSrtpDecSsrcStream *stream;
@ -1401,7 +1405,7 @@ unprotect:
stream = request_key_with_signal (filter, ssrc, SIGNAL_HARD_LIMIT);
GST_OBJECT_LOCK (filter);
/* Check we have a new stream for the key request */
/* Check the key request created a new stream */
if (stream == NULL) {
GST_WARNING_OBJECT (filter, "Hard limit reached, no new key, dropping");
goto err;