audioaggregator: Only post QoS messages if the property is enabled
authorSebastian Dröge <sebastian@centricular.com>
Mon, 12 Jul 2021 06:37:24 +0000 (09:37 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 12 Jul 2021 06:42:39 +0000 (09:42 +0300)
commit9243418a23cf369e991c44dc557a0a783b9603d7
tree9b9a4116ddceb7620a382e63c1d10484db976aa8
parent71e46bcf385656bc50ebb358656947aaa1ed1d7b
audioaggregator: Only post QoS messages if the property is enabled

Previously one of the branches did not check for the property value. To
avoid this in the future, check inside the QoS calculation function
instead.

As a side effect this now always prints the debug messages into the logs
when samples are dropped, which is useful information even without the
QoS messages.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1224>
gst-libs/gst/audio/gstaudioaggregator.c