diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-08-12 11:56:27 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-08-12 11:57:04 -0400 |
commit | 04bd37dd676a1f91f5669af65619c82c304db7f9 (patch) | |
tree | 156057ee92f0a4338ad69ce7ba86be17123e22ba | |
parent | b4c52425f20a8c757a2f6939d7c0d6ae2fdc6a6b (diff) |
srtpdec: Don't error on invalid packet, just drop it
-rw-r--r-- | ext/srtp/gstsrtpdec.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/srtp/gstsrtpdec.c b/ext/srtp/gstsrtpdec.c index 04d1883f5..7af2c33d2 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; } } |