segment: Added gst_segment_position_from_stream_time()
authorVivia Nikolaidou <vivia@toolsonair.com>
Fri, 25 Sep 2015 12:56:45 +0000 (15:56 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 25 Sep 2015 21:59:53 +0000 (23:59 +0200)
commitc0d4b1b64680bd8016ce6a69221b1564e392d59b
tree3893178863bbbe421895e281628ac5274bb7a046
parent60130eb5f030358c6068ae5a84d94613d3b723d2
segment: Added gst_segment_position_from_stream_time()

gst_segment_position_from_stream_time() will convert stream time into a
position in the segment so that gst_segment_to_stream_time() with that
position returns the same stream time. It will return -1 if the stream time
given is not inside the segment.
docs/gst/gstreamer-sections.txt
gst/gstsegment.c
gst/gstsegment.h
win32/common/libgstreamer.def