gdp: Rework GstSegment handling
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 13 May 2011 16:07:24 +0000 (18:07 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 25 Dec 2011 22:49:59 +0000 (22:49 +0000)
commit7c7920e0e22c16d6683a9bcef113eb377bb2ee14
tree7030a425af55db3ea9b548c2e841379aaafeefc2
parent1d9482190dd60b4be705b351a2ae98c8f888a4a0
gdp: Rework GstSegment handling

Improve GstSegment, rename some fields. The idea is to have the GstSegment
structure represent the timing structure of the buffers as they are generated by
the source or demuxer element.
gst_segment_set_seek() -> gst_segment_do_seek()
Rename the NEWSEGMENT event to SEGMENT.
Make parsing of the SEGMENT event into a GstSegment structure.
Pass a GstSegment structure when making a new SEGMENT event. This allows us to
pass the timing info directly to the next element. No accumulation is needed in
the receiving element, all the info is inside the element.
Remove gst_segment_set_newsegment(): This function as used to accumulate
segments received from upstream, which is now not needed anymore because the
segment event contains the complete timing information.
gst/gdp/dataprotocol.c