From e59962850ae334d47dff7d5f524c38d7ecbeb77d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 30 Dec 2019 12:52:20 +0200 Subject: [PATCH] dtlsenc: Don't warn on GST_FLOW_FLUSHING or GST_FLOW_EOS Only warn if pushing a buffer returns an actual error to not pollute logs with confusing warnings. --- ext/dtls/gstdtlsenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/dtls/gstdtlsenc.c b/ext/dtls/gstdtlsenc.c index f992af0..42ea75c 100644 --- a/ext/dtls/gstdtlsenc.c +++ b/ext/dtls/gstdtlsenc.c @@ -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)); } -- 2.7.4