From 63bb128948fcd67769c21ec777d4786f9e799adc Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Thu, 23 Nov 2023 01:26:33 -0500 Subject: [PATCH] rtp-stream: Set rtp.ptime on senders not receivers The pw_stream direction is inverted from what we want (input => sender). --- src/modules/module-rtp/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-rtp/stream.c b/src/modules/module-rtp/stream.c index 217c9a876..1893f79b7 100644 --- a/src/modules/module-rtp/stream.c +++ b/src/modules/module-rtp/stream.c @@ -420,7 +420,7 @@ struct rtp_stream *rtp_stream_new(struct pw_core *core, } else { impl->psamples = impl->mtu / impl->stride; impl->psamples = SPA_CLAMP(impl->psamples, min_samples, max_samples); - if (direction == PW_DIRECTION_OUTPUT) + if (direction == PW_DIRECTION_INPUT) pw_properties_setf(props, "rtp.ptime", "%f", impl->psamples * 1000.0 / impl->rate); }