[Bug 735509] oggdemux: should accumulate segment.base

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Aug 29 04:59:14 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=735509
  GStreamer | gst-plugins-base | unspecified

--- Comment #2 from Guillaume Desmottes <gdesmott at gnome.org> 2014-08-29 11:59:10 UTC ---
Actually base = gst_segment_to_running_time (segment.position) isn't the proper
fix to my problem.
In push mode, position is always equal to the length of my stream after the
first loop iteration. So after the first iteration gst_segment_to_running_time
(position) returns 2 * len and so we have to wait len seconds before the sample
can be played during the second iteration.

This does work, as start is always equal to 0 we now set base to len after the
first loop iteration and the sample is played right away as expected.
  segment.base = gst_segment_to_running_time (&ogg->segment,
          GST_FORMAT_TIME, start);

Is that the proper way to do this?

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