GNOME Bugzilla – Bug 629418
progressreport: add support for determining stream position from buffer timestamps instead of using queries
Last modified: 2010-12-06 14:18:31 UTC
Created attachment 170076 [details] [review] Proposed patch In streams with elements that have broken or dishonest position queries, the progressreport element can produce confusing output. The attached patch adds a mode in which the position is determined by looking at the buffer metadata, without doing any queries. Of course, this only works for FORMAT_TIME. In a slightly fancier version of this patch, duration could be taken from the configured segment.
Modified patch a bit structurally, and also used the buffer stream time (i.e. gst_segment_to_stream_time) and segment duration. commit 1d4496254dac71bc2494e3f7b296d29534086f97 Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Mon Dec 6 12:17:21 2010 +0100 progressreport: optionally determine progress using buffer metadata Based on patch by Leo Singer <lsinger at caltech.edu> Fixes #629418.