module-rtp-sap: Publish sender SSRC if we have it

Can be handy on the receiver side.
This commit is contained in:
Arun Raghavan 2025-02-15 15:51:06 -05:00
parent dbf0442c7e
commit 13e3918f81
2 changed files with 9 additions and 0 deletions

View file

@ -547,6 +547,7 @@ struct rtp_stream *rtp_stream_new(struct pw_core *core,
pw_properties_setf(props, "rtp.media", "%s", impl->format_info->media_type);
pw_properties_setf(props, "rtp.mime", "%s", impl->format_info->mime);
pw_properties_setf(props, "rtp.payload", "%u", impl->payload);
pw_properties_setf(props, "rtp.ssrc", "%u", impl->ssrc);
pw_properties_setf(props, "rtp.rate", "%u", impl->rate);
if (impl->info.info.raw.channels > 0)
pw_properties_setf(props, "rtp.channels", "%u", impl->info.info.raw.channels);