dtlsenc: Don't warn on GST_FLOW_FLUSHING or GST_FLOW_EOS
authorSebastian Dröge <sebastian@centricular.com>
Mon, 30 Dec 2019 10:52:20 +0000 (12:52 +0200)
committerSebastian Dröge <slomo@coaxion.net>
Mon, 30 Dec 2019 11:09:46 +0000 (11:09 +0000)
Only warn if pushing a buffer returns an actual error to not pollute
logs with confusing warnings.

ext/dtls/gstdtlsenc.c

index f992af0..42ea75c 100644 (file)
@@ -461,7 +461,7 @@ src_task_loop (GstPad * pad)
   if (check_connection_timeout)
     gst_dtls_connection_check_timeout (self->connection);
 
-  if (G_UNLIKELY (ret != GST_FLOW_OK)) {
+  if (G_UNLIKELY (ret == GST_FLOW_NOT_LINKED || ret < GST_FLOW_EOS)) {
     GST_WARNING_OBJECT (self, "failed to push buffer on src pad: %s",
         gst_flow_get_name (ret));
   }