From 04bd37dd676a1f91f5669af65619c82c304db7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Mon, 12 Aug 2013 11:56:27 -0400 Subject: [PATCH] srtpdec: Don't error on invalid packet, just drop it --- ext/srtp/gstsrtpdec.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ext/srtp/gstsrtpdec.c b/ext/srtp/gstsrtpdec.c index 04d1883f5c..7af2c33d25 100644 --- a/ext/srtp/gstsrtpdec.c +++ b/ext/srtp/gstsrtpdec.c @@ -910,14 +910,15 @@ unprotect: break; case err_status_auth_fail: + GST_WARNING_OBJECT (filter, "Error authentication packet, dropping"); + goto drop_buffer; + case err_status_cipher_fail: - GST_ELEMENT_WARNING (filter, STREAM, DECRYPT, - ("Error while decryption stream"), (NULL)); - ret = GST_FLOW_ERROR; + GST_WARNING_OBJECT (filter, "Error while decrypting packet, dropping"); goto drop_buffer; default: - GST_WARNING_OBJECT (filter, "Other error"); + GST_WARNING_OBJECT (filter, "Other error, dropping"); goto drop_buffer; } }