module-rtp: add timer for ck requests

Scale RTP timestamps against the clock, allow some jitter.
Make method to query current RTP timestamps.
This commit is contained in:
Wim Taymans 2023-03-07 09:00:40 +01:00
parent 8e5b9da177
commit c5effbd979
5 changed files with 181 additions and 25 deletions

View file

@ -151,8 +151,6 @@ struct impl {
struct spa_hook core_listener;
struct spa_hook core_proxy_listener;
struct spa_source *timer;
struct pw_properties *stream_props;
struct rtp_stream *stream;
@ -338,9 +336,6 @@ static void impl_destroy(struct impl *impl)
if (impl->core && impl->do_disconnect)
pw_core_disconnect(impl->core);
if (impl->timer)
pw_loop_destroy_source(impl->loop, impl->timer);
if (impl->rtp_fd != -1)
close(impl->rtp_fd);