gccbwe: don't log an error when handling a buffer list while stopping

When `webrtcsink` was stopped, `gccbwe` could log an error if it was handling a
buffer list. This commit logs an error only if `push_list()` returned an error
other than `Flushing`.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1535>
This commit is contained in:
François Laignel 2024-04-09 16:24:16 +02:00 committed by GStreamer Marge Bot
parent 4dcc44687a
commit 42158cbcb0

View file

@ -1096,7 +1096,9 @@ impl BandwidthEstimator {
if !list.is_empty() {
if let Err(err) = bwe.imp().push_list(list) {
gst::error!(CAT, obj: bwe, "pause task, reason: {err:?}");
if err != gst::FlowError::Flushing {
gst::error!(CAT, obj: bwe, "pause task, reason: {err:?}");
}
pause()
}
}