[Bug 740575] Fixing DTS in GStreamer

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Mar 17 12:15:16 PDT 2015


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

--- Comment #31 from Jan Schmidt <thaytan at noraisin.net> ---
The API I thought of was

gint64 gst_segment_to_relative_running_time (const GstSegment *segment,
GstFormat format, guint64 reference, guint64 position)

which would return a running time as a delta from the passed reference time.
Normally the user would use the PTS running time for that reference, but they
could also pass 0 which would be mostly equivalent to
gst_segment_to_running_time with a reduced gint64 range.

That way, the caller chooses a gint64 range to operate on.

Maybe that's overkill, and an unclipped version of
gst_segment_to_running_time() that returns a gint64 is all that's needed.

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