flacdec: fix spurious timestamp discontinuity
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 15 Nov 2011 13:23:56 +0000 (13:23 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 15 Nov 2011 13:36:15 +0000 (13:36 +0000)
commit8548b2c777453add21bcf155956f4058a5bded08
tree08d2cc833e0a0891fc8e3c6d9a9b3b4808f78fc5
parent7900933a5214ca0b693dfe89f76606456d2ddd6f
flacdec: fix spurious timestamp discontinuity

We need to tell the base class that we're dropping buffers,
so it drops the input timestamps corresponding to these.
Otherwise, the first actual audio buffers we output will be
stamped with those - GST_CLOCK_TIMESTAMP_NONE. That mismatch
between input buffer count and output buffer count will stay
while playing. With enough headers and long enough buffer
durations, the sink will have played enough before receiving
the first valid timestamp (usually 0), and will trigger an
audible discontinuity.
ext/flac/gstflacdec.c