From 9559b9382b24eddbcd17686f69b6d9e2746d901d Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Wed, 19 Jun 2024 11:15:17 -0400 Subject: [PATCH] module-rtp: Propagate cleanup.sec to module-rtp-source This might be specified on a `create-stream`, but then not actually applied as a module argument, and thus be ignored. --- src/modules/module-rtp-sap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/module-rtp-sap.c b/src/modules/module-rtp-sap.c index f20a7d404..c6ad713ca 100644 --- a/src/modules/module-rtp-sap.c +++ b/src/modules/module-rtp-sap.c @@ -975,6 +975,10 @@ static int session_load_source(struct session *session, struct pw_properties *pr if ((media = pw_properties_get(props, "sess.media")) == NULL) media = "audio"; + if ((str = pw_properties_get(props, "cleanup.sec")) != NULL) { + fprintf(f, "\"cleanup.sec\" = \"%s\", ", str); + } + if (spa_streq(media, "audio")) { const char *mime; const struct format_info *format_info;