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.
This commit is contained in:
Miguel París Díaz 2017-04-11 12:41:11 +02:00 committed by GStreamer Merge Bot
parent 075ff1e8b0
commit ed71e262b0
2 changed files with 5 additions and 0 deletions

View file

@ -78,6 +78,7 @@
# define srtp_err_status_ok err_status_ok # define srtp_err_status_ok err_status_ok
# define srtp_err_status_bad_param err_status_bad_param # 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_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_key_expired err_status_key_expired
# define srtp_err_status_auth_fail err_status_auth_fail # define srtp_err_status_auth_fail err_status_auth_fail
# define srtp_err_status_cipher_fail err_status_cipher_fail # define srtp_err_status_cipher_fail err_status_cipher_fail

View file

@ -1396,6 +1396,10 @@ unprotect:
GST_INFO_OBJECT (filter, GST_INFO_OBJECT (filter,
"Dropping replayed packet, probably retransmission"); "Dropping replayed packet, probably retransmission");
goto err; 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:{ case srtp_err_status_key_expired:{
GstSrtpDecSsrcStream *stream; GstSrtpDecSsrcStream *stream;