Don't send another newsegment event if the upstream muxer/parser has already
sent one (otherwise the sink will wait for $duration before starting playback).
Fixes long delay until playback starts with flac-in-ogg files.
Fixes #610959.
GST_DEBUG_OBJECT (flacdec, "total samples = %" G_GINT64_FORMAT, samples);
- if (samples > 0) {
+ /* in framed mode the demuxer/parser upstream has already pushed a
+ * newsegment event in TIME format which we've passed on */
+ if (samples > 0 && !flacdec->framed) {
gint64 duration;
gst_segment_set_duration (&flacdec->segment, GST_FORMAT_DEFAULT,