identity: Handle seeking with single_segment=True
authorThibault Saunier <tsaunier@igalia.com>
Wed, 29 Apr 2020 02:21:13 +0000 (22:21 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 6 May 2020 14:24:36 +0000 (14:24 +0000)
commitcb212c9fd7e41b74820eb096474bb5595865f2d0
tree06e19e3322971163e63c8909b9a8e18f48fcf2cf
parentb517b59171790fd160f14f6ef85eb055e24873b2
identity: Handle seeking with single_segment=True

Identity was ignoring seek and flush events even when using
a single segment. In the end it means that we couldn't compute
buffers running-time and stream time after seeks.

This commits adds support for flushing seeks only as I have no idea
what to do for non flushing ones.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/450>
plugins/elements/gstidentity.c
plugins/elements/gstidentity.h