From ed71e262b0329032379cf6e270fcfa552a63d912 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Miguel=20Par=C3=ADs=20D=C3=ADaz?= Date: Tue, 11 Apr 2017 12:41:11 +0200 Subject: [PATCH] srtpdec: do not warning old replay errors Reordered packets producing decrypting errors are very normal, so we should filter which errors are warning and which not. --- ext/srtp/gstsrtp.h | 1 + ext/srtp/gstsrtpdec.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ext/srtp/gstsrtp.h b/ext/srtp/gstsrtp.h index b303fc1..6dea568 100644 --- a/ext/srtp/gstsrtp.h +++ b/ext/srtp/gstsrtp.h @@ -78,6 +78,7 @@ # 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_replay_old err_status_replay_old # 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 diff --git a/ext/srtp/gstsrtpdec.c b/ext/srtp/gstsrtpdec.c index d93d0a8..7281a7f 100644 --- a/ext/srtp/gstsrtpdec.c +++ b/ext/srtp/gstsrtpdec.c @@ -1396,6 +1396,10 @@ unprotect: GST_INFO_OBJECT (filter, "Dropping replayed packet, probably retransmission"); goto err; + case srtp_err_status_replay_old: + GST_INFO_OBJECT (filter, + "Dropping replayed old packet, probably retransmission"); + goto err; case srtp_err_status_key_expired:{ GstSrtpDecSsrcStream *stream; -- 2.7.4