[Bug 726144] New: 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 18:53:06 PDT 2014


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

           Summary: gst_element_query_duration returns false while
                    pipeline paused, even if MP3 has duration tag
    Classification: Platform
           Product: GStreamer
           Version: 1.2.3
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: don't know
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: mike at flyn.org
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=271567)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=271567)
Simple program that illustrates problem

I have some code in dmapd that determines the duration of an MP3, first by
calling gst_element_query_duration on a paused pipeline and then calling
gst_element_query_duration after having played the pipeline.

It looks like gst_element_query_duration does not identify the duration while
paused, even when the MP3 contains a duration tag. Only when I call
gst_element_query_duration again after playing the stream for a few seconds,
does the function identify the stream's duration.

I stripped down my code (attached). When I run it, I see:

./a.out /var/db/BigDisk/Storage/Music/Dire\ Straits/Dire\ Straits\ -\ On\ The\
Night\ -\ 04\ -\ Romeo\ And\ Juliet.mp3 
found duration 604

** (a.out:20808): WARNING **: Failed to determine duration of
file:///var/db/BigDisk/Storage/Music/Dire%20Straits/Dire%20Straits%20-%20On%20The%20Night%20-%2004%20-%20Romeo%20And%20Juliet.mp3
while paused; trying while playing

-- 
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