rtp-stream: do not set false ptime values

This commit is contained in:
Dmitry Sharshakov 2023-06-11 17:28:39 +03:00 committed by Wim Taymans
parent 6d2b43b51c
commit 991e3928d4
2 changed files with 14 additions and 4 deletions

View file

@ -899,6 +899,7 @@ static struct session *session_new(struct impl *impl, struct sdp_info *info)
pw_properties_setf(props, "rtp.destination.ip", "%s", dst_addr);
pw_properties_setf(props, "rtp.destination.port", "%u", info->dst_port);
pw_properties_setf(props, "rtp.payload", "%u", info->payload);
pw_properties_setf(props, "rtp.ptime", "%f", info->ptime);
pw_properties_setf(props, "rtp.media", "%s", info->media_type);
pw_properties_setf(props, "rtp.mime", "%s", info->mime_type);
pw_properties_setf(props, "rtp.rate", "%u", info->rate);