basesink: Post a latency message whenever we're ready to answer the query
authorSebastian Dröge <sebastian@centricular.com>
Thu, 24 Jun 2021 08:28:28 +0000 (11:28 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 28 Jun 2021 16:59:47 +0000 (19:59 +0300)
commitba294415d73c0f61da6f2601bc855d50e98029a5
tree37deddfddea55ead902fecedf70a6155fdd1c9a7
parent81bd8913b55726e08f48152f5ddb49def1c41da0
basesink: Post a latency message whenever we're ready to answer the query

Usually the latency message is only posted whenever latency of an
element changes but that might be too early as the sinks might not be
able to query the latency at that point yet.

Similarly adding a new sink should cause latency reconfiguration once
that new sink is able to report its latency.

This fixes latency configuration in pipelines where webrtcbin is the
only "sink", i.e. it is used in a sendonly session. Before, the latency
would always be configured to 0.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/843>
libs/gst/base/gstbasesink.c
tests/check/gst/gstbin.c
tests/check/pipelines/cleanup.c
tests/check/pipelines/simple-launch-lines.c