pad: add per-pad offsets
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 19 May 2011 16:27:55 +0000 (18:27 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 19 May 2011 16:34:43 +0000 (18:34 +0200)
commite8b8c4aaa6d8b384b5899e64b91e04af3ec5196a
tree6e95d1ecccd12d39b0e5c6214c23b6c9e03c7ae2
parentc8340e77620fbd9d1090590dc1d00e201541ee67
pad: add per-pad offsets

When linking pads and when copying a segment event from the sourc pad to the
sinkpad, apply the src and sinkpad offsets to the segment base. Make sure that
we only modify the event stored on the sinkpad and never the one on the source
pad.
When changing the pad offset, perform the segment copy with the updated offsets.
When pushing a segment event, apply the srcpad offset before sending the event
to the peer pad.
This part is missing the adjustment of the segment event on the sinkpad, which
is for a later patch.
gst/gstpad.c