[Bug 726144] gst_element_query_duration returns false while pipeline paused, even if MP3 has duration tag

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Mar 11 23:43:10 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=726144
  GStreamer | don't know | 1.2.3

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |t.i.m at zen.co.uk

--- Comment #2 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2014-03-12 07:06:40 UTC ---
We tend not to trust duration tags. If you want to fallback to taking the
duration from the tags if querying the duration fails, or in general, that's a
decision you can make in your application.

Usually querying the duration in paused state should work (this is assuming you
wait for preroll, which you do), but the audio parsers will sometimes only try
and estimate a duration when they've seen a couple of frames pass through, in
order not to give a completely bogus duration for VBR files. That's probably
why you don't get a duration here.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list