From 4a2c93299e85ee2af058787eb0489cb3973541d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 3 May 2022 15:32:07 +0300 Subject: [PATCH] mccparse/sccparse: Don't log gst::FlowError::Flushing or Eos as error to the debug logs --- video/closedcaption/src/mcc_parse/imp.rs | 2 +- video/closedcaption/src/scc_parse/imp.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/video/closedcaption/src/mcc_parse/imp.rs b/video/closedcaption/src/mcc_parse/imp.rs index 173a28cd..268ce81d 100644 --- a/video/closedcaption/src/mcc_parse/imp.rs +++ b/video/closedcaption/src/mcc_parse/imp.rs @@ -564,7 +564,7 @@ impl MccParse { } self.srcpad.push(buffer).map_err(|err| { - if err != gst::FlowError::Flushing { + if err != gst::FlowError::Flushing && err != gst::FlowError::Eos { gst::error!(CAT, obj: element, "Pushing buffer returned {:?}", err); } err diff --git a/video/closedcaption/src/scc_parse/imp.rs b/video/closedcaption/src/scc_parse/imp.rs index 1e62dc87..52ad35c9 100644 --- a/video/closedcaption/src/scc_parse/imp.rs +++ b/video/closedcaption/src/scc_parse/imp.rs @@ -454,7 +454,9 @@ impl SccParse { } self.srcpad.push_list(buffers).map_err(|err| { - gst::error!(CAT, obj: element, "Pushing buffer returned {:?}", err); + if err != gst::FlowError::Flushing && err != gst::FlowError::Eos { + gst::error!(CAT, obj: element, "Pushing buffer returned {:?}", err); + } err })?;