Translate @position to the total stream time using the currently configured
segment. Compared to gst_segment_to_stream_time() this function can return
negative stream-time.
This function is typically used by elements that need to synchronize buffers
against the clock or eachother.
@position can be any value and the result of this function for values outside
of the segment is extrapolated.
When 1 is returned, @position resulted in a positive stream-time returned
in @stream_time.
When this function returns -1, the returned @stream_time should be negated
to get the real negative stream time.
Translate @position to the total stream time using the currently configured segment. Compared to gst_segment_to_stream_time() this function can return negative stream-time.
This function is typically used by elements that need to synchronize buffers against the clock or eachother.
@position can be any value and the result of this function for values outside of the segment is extrapolated.
When 1 is returned, @position resulted in a positive stream-time returned in @stream_time.
When this function returns -1, the returned @stream_time should be negated to get the real negative stream time.