baseparse: correctly handle non-flush seek
authorJulien Isorce <jisorce@oblong.com>
Thu, 26 Jan 2017 16:51:21 +0000 (16:51 +0000)
committerJulien Isorce <jisorce@oblong.com>
Thu, 26 Jan 2017 16:51:21 +0000 (16:51 +0000)
commitb2c05cac8e50204d9ded4a858618c8b8b5b00910
tree3c7a730ed5d900779687e2e989dd111ebdd8e2fe
parent0c36e5766dde198a8015e7f04306838407dc8a86
baseparse: correctly handle non-flush seek

Otherwise when seeking/looping to the start when reaching the end,
the sink waits for the duration of the stream. So the user hears
nothing for the duration of the stream before it actually loop again.
See example attached to the bug for that.

Existing test:
gst-plugins-good/tests/icles/test-segment-seeks foo.flac
Without the patch the user hears a crack/cut at each seek.

https://bugzilla.gnome.org/show_bug.cgi?id=777780
libs/gst/base/gstbaseparse.c