GNOME Bugzilla – Bug 534258
basesink not accumulated time in some cases.
Last modified: 2008-05-22 08:36:05 UTC
When a basesink is playing a stream that doesn't have a segment end and the buffers contain no duration then the segments last_stop doesn't get update. Causing no time to be accumulated when a new segment comes in. I've got a pipeline that's concatinating several mkv's and sending them out over rtp. When one isn't completely finished (for whatever reason). This go horribly wrong as all buffers after the broken mkv will be too late.
Created attachment 111301 [details] [review] When nothing else is available use the last buffers start_time as the segment stop time
2008-05-22 Sebastian Dröge <slomo@circular-chaos.org> Patch by: Sjoerd Simons <sjoerd at luon dot net> * libs/gst/base/gstbasesink.c: (gst_base_sink_get_sync_times): If nothing else can be used, use the last buffer's start time as the segment's last stop. Fixes bug #534258.