Rework GstSegment handling
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 13 May 2011 16:07:24 +0000 (18:07 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 16 May 2011 09:37:52 +0000 (11:37 +0200)
commitbdbc06934812481fce27c068081e2bbefcd887d0
treecbc20f023a5218b9538cee89f015fea5cde3ed3a
parentddf2489be446928f063e195d365071e8402ecc7a
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.
35 files changed:
docs/plugins/gstreamer-plugins.args
gst/gstevent.c
gst/gstevent.h
gst/gstinfo.c
gst/gstquark.c
gst/gstquark.h
gst/gstsegment.c
gst/gstsegment.h
libs/gst/base/gstbaseparse.c
libs/gst/base/gstbasesink.c
libs/gst/base/gstbasesrc.c
libs/gst/base/gstbasetransform.c
libs/gst/base/gstbasetransform.h
libs/gst/base/gstcollectpads.c
libs/gst/check/gstconsistencychecker.c
libs/gst/dataprotocol/dataprotocol.c
plugins/elements/gstfdsink.c
plugins/elements/gstfdsrc.c
plugins/elements/gstfilesink.c
plugins/elements/gstfunnel.c
plugins/elements/gstidentity.c
plugins/elements/gstinputselector.c
plugins/elements/gstmultiqueue.c
plugins/elements/gstoutputselector.c
plugins/elements/gstqueue.c
plugins/elements/gstqueue2.c
tests/check/elements/fakesink.c
tests/check/elements/filesink.c
tests/check/elements/multiqueue.c
tests/check/elements/queue.c
tests/check/generic/sinks.c
tests/check/gst/gstevent.c
tests/check/gst/gstinfo.c
tests/check/gst/gstsegment.c
tests/check/libs/basesrc.c