# 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
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;
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;