audiortppayload: refactor and cleanup
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 2 Sep 2009 08:46:30 +0000 (10:46 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 3 Sep 2009 15:58:59 +0000 (17:58 +0200)
commit1c6b71af0386a1c82d33548b5102efa793f49638
treee6f88371210f8194ac5d201494fff04468653ac7
parent432612b0352829289e1140444dbfc5d890b8f87e
audiortppayload: refactor and cleanup

Always use the adapter when we need to fragment the incomming buffer. Use more
modern adapter functions to avoid malloc and memcpy. The overall result is that
the code looks cleaner while it should be equally fast and in some case avoid a
memcpy and malloc.
Use the adapter timestamping functions for more precise timestamps in case of
weird disconts.
Cache some values instead of recalculating them.
Add gst_base_rtp_audio_payload_flush() to flush a certain amount of bytes from
the internal adapter.

API: GstBaseRTPAudioPayload::gst_base_rtp_audio_payload_flush()
gst-libs/gst/rtp/gstbasertpaudiopayload.c
gst-libs/gst/rtp/gstbasertpaudiopayload.h
win32/common/libgstrtp.def