[Bug 796491] New: CRITICAL assertion duration change when play audio files based on gstplayer

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jun 4 06:52:05 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=796491

            Bug ID: 796491
           Summary: CRITICAL assertion duration change when play audio
                    files based on gstplayer
    Classification: Platform
           Product: GStreamer
           Version: 1.14.0
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: lyon.wang at nxp.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 372534
  --> https://bugzilla.gnome.org/attachment.cgi?id=372534&action=edit
flac audio clip for test

Hi,
   We found some duration change CRITICAL print when playing audio files.

CRITICAL **: emit_duration_changed: assertion 'self->cached_duration !=
duration' failed
   Our gplay app is based on gstplayer API, this assertion is in
emit_duration_changed() in gstplayer.c  the cached_duration is the same as new
duration.

 For the flac audio files (actually all the flac files on hand), when we were
trying to FB ( say set rate to -1), 
it will report this CRITICAL warning.

I had some debugging and found that in gst_base_parse_loop(): 
    if (push_eos) {
      if (parse->priv->estimated_duration <= 0) {
          GST_ERROR("gst_base_parse_update_duration");
        gst_base_parse_update_duration (parse);
      }
     ...
    }

    When change rate (need flushing),the estimated_duration here is -1 (then in
gst_base_parse_update_duration() , the estimated_drift is large), so it will
try to update the duration and post duration change message. 
    However, the queried duration is the same as cached_duration, which cause
this issue. 
    I see above code is for fixing small mp3 audio duration issue
(https://bugzilla.gnome.org/show_bug.cgi?id=750131)


    So do you have any suggestion for flac audio clips rewind CRITICAL
assertion issue?

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