mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
rtp/stream: calculate and format the ptime property as float
This commit is contained in:
parent
b74f2e19a7
commit
d08439316b
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue