input-selector: Use proper segments when cleaning cached buffers
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Fri, 23 Jul 2021 14:20:20 +0000 (16:20 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 28 Jul 2021 09:47:03 +0000 (09:47 +0000)
commit97601e49cb84bd0bbcbb8b72bbadbee13615a8c7
tree0e935a4d8c2c21e953b5b9bc9ecf577d273d4529
parent408a3bfcf2f81b5ab3e9dc479e13367885301480
input-selector: Use proper segments when cleaning cached buffers

We need to use the segment associated with the cached buffer, not the
current segment of the pad, otherwise we miscalculate the running time
of cached buffers from before a segment change.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/859>
plugins/elements/gstinputselector.c