flacdec: send newsegment event when operating push-based and unframed
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 1 Aug 2009 16:07:42 +0000 (17:07 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 1 Aug 2009 16:07:42 +0000 (17:07 +0100)
commitcee10cb439afa1cb74db5c62884d4999a4c1afac
treee02579308a8e64e5a5045b8808348cfa4d684670
parent3cf87909061290bc317a2020550662f054505518
flacdec: send newsegment event when operating push-based and unframed

For some reason flac doesn't call our metadata callback when we operate
in push mode with unframed input, but that's where we set up the
newsegment event (since that's where we'd get the duration from the
stream info header), so we didn't send a newsegment event at all in this
case. Hack around this by storing a generic newsegment event for now
which will be used if we don't replace it with a better one that
includes the duration.
ext/flac/gstflacdec.c