srtpdec: Don't error on invalid packet, just drop it
authorOlivier Crête <olivier.crete@collabora.com>
Mon, 12 Aug 2013 15:56:27 +0000 (11:56 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Mon, 12 Aug 2013 15:57:04 +0000 (11:57 -0400)
ext/srtp/gstsrtpdec.c

index 04d1883f5c26a5dc4d1f8c7fb16cbbe10491cc15..7af2c33d25867a48b61998bf30d07255c768e67e 100644 (file)
@@ -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;
     }
   }