videodecoder: Only post latency message if it changed
authorEdward Hervey <edward@centricular.com>
Thu, 27 Oct 2022 05:21:19 +0000 (07:21 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 27 Oct 2022 15:25:22 +0000 (15:25 +0000)
commit8f286fc388b718d3c8912707ff38b056ddd6380c
tree25fe122213ae9ca156b4f72be7c460a3901592ec
parent5c2eba666ba0e14142d2584bc7716cd5688dc4e4
videodecoder: Only post latency message if it changed

Posting latency messages causes a full and potentially expensive latency
recalculation of the pipeline. While subclasses should check whether the latency
really changed or not before calling this function, we ensure that we do not
post such messages if it didn't change.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3282>
subprojects/gst-plugins-base/gst-libs/gst/video/gstvideodecoder.c