wavparse: fix seeking in READY state
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Thu, 18 Feb 2021 09:34:25 +0000 (10:34 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Thu, 18 Feb 2021 15:32:24 +0000 (16:32 +0100)
commit1796f3f5e44910ae137c801350113587a62bd07a
tree123485d64060c0e44c018953a3fbc2760008af78
parent4aa39da2d3b90bd8282e43cc7ac4de36d552c6e8
wavparse: fix seeking in READY state

wavparse claims to be able to support seeking in the READY state by
saving the pending seek event and actually seeking later after having parsed the
header.
Problem was that this seek event was reset on the READY to PAUSED
transition, making all this code useless. Fixing it by stop resetting
on READY to PAUSED transition as we already reset on PAUSED to READY
and when initiating the element.

Note that DTS marker detection isn't support in such scenario as
gst_type_find_helper_for_buffer() needs a buffer containing the
beginning of the stream.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/879>
gst/wavparse/gstwavparse.c
tests/check/elements/wavparse.c