summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2013-08-12 11:56:27 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2013-08-12 11:57:04 -0400
commit04bd37dd676a1f91f5669af65619c82c304db7f9 (patch)
tree156057ee92f0a4338ad69ce7ba86be17123e22ba
parentb4c52425f20a8c757a2f6939d7c0d6ae2fdc6a6b (diff)
srtpdec: Don't error on invalid packet, just drop it
-rw-r--r--ext/srtp/gstsrtpdec.c9
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;
}
}