rtp: Fix extension data support
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 22 Aug 2012 07:46:38 +0000 (09:46 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 22 Aug 2012 07:56:39 +0000 (09:56 +0200)
commit196812765001e086238f1147eefdda10287a59e6
tree3f977687757dfe973b45743b5d31a9167c6adf88
parent2d6fd0f72d5b0a231470db9cd93d99444b632a13
rtp: Fix extension data support

Allocate header, payload and padding in separate memory blocks in
gst_rtp_buffer_allocate().
don't use part of the payload data as storage for the extension data but store
it in a separate memory block that can be enlarged when needed.
Rework the one and two-byte header extension to make it reserve space for the
extra extension first.
Fix RTP unit test. Don't map the complete buffer or make assumptions on the
memory layout of the underlaying implementation. We can now always add extension
data because we have a separate memory block for it.
gst-libs/gst/rtp/gstrtpbuffer.c
tests/check/libs/rtp.c