mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
module-rtp: improve properties
This commit is contained in:
parent
3badf6f3ac
commit
7c04b42e38
2 changed files with 68 additions and 35 deletions
|
|
@ -332,7 +332,6 @@ struct rtp_stream *rtp_stream_new(struct pw_core *core,
|
|||
break;
|
||||
}
|
||||
|
||||
pw_properties_setf(props, "rtp.media", "%s", impl->format_info->media_type);
|
||||
pw_properties_setf(props, "rtp.mime", "%s", impl->format_info->mime);
|
||||
|
||||
if (direction == PW_DIRECTION_INPUT)
|
||||
|
|
@ -341,6 +340,7 @@ struct rtp_stream *rtp_stream_new(struct pw_core *core,
|
|||
impl->ssrc = pw_properties_get_uint32(props, "rtp.receiver-ssrc", pw_rand32());
|
||||
impl->payload = pw_properties_get_uint32(props, "rtp.payload", impl->payload);
|
||||
impl->mtu = pw_properties_get_uint32(props, "rtp.mtu", DEFAULT_MTU);
|
||||
impl->ts_offset = pw_properties_get_uint32(props, "rtp.ts-offset", 0);
|
||||
|
||||
str = pw_properties_get(props, "rtp.min-ptime");
|
||||
if (!spa_atof(str, &min_ptime))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue