rtp: Hide RTP implementation details from module-rtp-*
authorArun Raghavan <arun@arunraghavan.net>
Thu, 12 May 2016 12:29:55 +0000 (17:59 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Fri, 8 Nov 2019 12:09:03 +0000 (17:39 +0530)
commitd15291bbbb7675f2b13d7bc8de621e3250d0aba0
treecbda979b041c45e194b9047a2d89fff934e90fce
parent0548cdc6d6584a160c0399a50ba03aedb051af6c
rtp: Hide RTP implementation details from module-rtp-*

This moves RTP implementation-specific information out of
module-rtp-send/recv. This is basically done by making the
pa_rtp_context structure opaque from the perspective of these modules.
We can then potentially replace the underlying RTP implementation with
something else transparently.

One RTP detail that does "leak" is the RTP timestamp. We provide this to
module-rtp-recv so that it can perform rate adjustments to match the
sender rate.

Signed-off-by: Arun Raghavan <arun@arunraghavan.net>
src/modules/rtp/module-rtp-recv.c
src/modules/rtp/module-rtp-send.c
src/modules/rtp/rtp.c
src/modules/rtp/rtp.h