GNOME Bugzilla – Bug 575649
[oggdemux] duration query in time format returns true with length 0
Last modified: 2009-03-17 19:10:48 UTC
Please describe the problem: When playing a pipeline with a non-pull source (souphttpsrc), oggdemux is not able to get all the chains to calculate the complete duration of the stream. In this case, when querying duration with GST_FORMAT_TIME, we should get FALSE, not TRUE with length 0, which is what it does now. Steps to reproduce: 1. Create a playbin with a http uri and a ogg file 2. query the duration in time format 3. see that it returns true and the length is 0 Actual results: duration query returns true and length is 0 Expected results: duration query should return false Does this happen every time? yes Other information: ogg->total_time is zero. and it is returned, without querying if it's streaming or not.
commit 4e11b596cbf479e683bc8fd394769c7a5497fb5b Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Tue Mar 17 19:53:44 2009 +0100 oggdemux: report -1 for duration in push mode In push mode we must return TRUE from the duration query with a value of -1 meaning that we know that we don't know the duration.