[Bug 733351] queue2: Process SEEKING query

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Aug 11 06:11:36 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=733351
  GStreamer | gstreamer (core) | git

--- Comment #4 from Jan Alexander Steffens (heftig) <jan.steffens at gmail.com> 2014-08-11 13:11:32 UTC ---
The code in baseparse (and flvdemux) that handles checking seekability is:

  gst_query_parse_seeking (query, NULL, &seekable, &start, &stop);

  /* try harder to query upstream size if we didn't get it the first time */
  if (seekable && stop == -1) {
    GST_DEBUG_OBJECT (parse, "doing duration query to fix up unset stop");
    gst_pad_peer_query_duration (parse->sinkpad, GST_FORMAT_BYTES, &stop);
  }

  /* if upstream doesn't know the size, it's likely that it's not seekable in
   * practice even if it technically may be seekable */
  if (seekable && (start != 0 || stop <= start)) {
    GST_DEBUG_OBJECT (parse, "seekable but unknown start/stop -> disable");
    seekable = FALSE;
  }

I want to seek in a livestream that does not have a known duration, so the
duration query also returns -1 and this code claims unseekable.

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