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.
This commit is contained in:
Sebastian Dröge 2019-12-30 12:52:20 +02:00 committed by Sebastian Dröge
parent 0dc783d719
commit e59962850a

View 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));
}