flacdec: don't lose the first buffer after a seek
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 9 Mar 2009 16:14:12 +0000 (17:14 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 9 Mar 2009 16:14:12 +0000 (17:14 +0100)
commit8f8e035cd5794658a359d7233fe67f48f5d77b2c
tree3c3c1c157804a44687adf0231dcf1b4979cba11f
parentaf7aaef37ac5521e12684192507653741e85d812
flacdec: don't lose the first buffer after a seek

The flacdec API calls the write callback when performing a seek. We cannot yet
push out a buffer at that time so we must keep it and push it out later.
Flush out the upstream part of the pipeline when doing a seek.
Fixes #574275.
ext/flac/gstflacdec.c
ext/flac/gstflacdec.h