After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 575649 - [oggdemux] duration query in time format returns true with length 0
[oggdemux] duration query in time format returns true with length 0
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal minor
: 0.10.23
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-17 06:59 UTC by Thadeu Lima de Souza Cascardo
Modified: 2009-03-17 19:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Thadeu Lima de Souza Cascardo 2009-03-17 06:59:49 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.
Comment 1 Wim Taymans 2009-03-17 18:54:40 UTC
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.