LADI
/
spa
1
Fork 0

rtp/stream: calculate and format the ptime property as float

This commit is contained in:
Sebastian Jaeckel 2023-05-16 15:08:04 +02:00 committed by Wim Taymans
parent b74f2e19a7
commit d08439316b
1 changed files with 2 additions and 2 deletions

View File

@ -407,8 +407,8 @@ struct rtp_stream *rtp_stream_new(struct pw_core *core,
}
pw_properties_setf(props, "net.mtu", "%u", impl->mtu);
pw_properties_setf(props, "rtp.ptime", "%u",
impl->psamples * 1000 / impl->rate);
pw_properties_setf(props, "rtp.ptime", "%f",
impl->psamples * 1000.0 / impl->rate);
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);