mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
module-rtp: fix direct timestamps
fix some other properties.
This commit is contained in:
parent
3b685581a4
commit
8e5b9da177
6 changed files with 46 additions and 16 deletions
|
|
@ -648,8 +648,9 @@ static struct session *session_new_announce(struct impl *impl, struct node *node
|
|||
sdp->ntp = (uint32_t) time(NULL) + 2208988800U;
|
||||
sess->props = props;
|
||||
|
||||
if ((str = pw_properties_get(props, "sess.name")) != NULL)
|
||||
sdp->session_name = strdup(str);
|
||||
if ((str = pw_properties_get(props, "sess.name")) == NULL)
|
||||
str = pw_get_host_name();
|
||||
sdp->session_name = strdup(str);
|
||||
|
||||
if ((str = pw_properties_get(props, "rtp.destination.port")) == NULL)
|
||||
goto error_free;
|
||||
|
|
@ -763,7 +764,7 @@ static int session_load_source(struct session *session, struct pw_properties *pr
|
|||
return -EINVAL;
|
||||
}
|
||||
if ((str = pw_properties_get(props, "rtp.ts-offset")) != NULL)
|
||||
pw_properties_set(props, "sess.ts-offset", str);
|
||||
fprintf(f, "\"sess.ts-offset\" = %s, ", str);
|
||||
|
||||
fprintf(f, " stream.props = {");
|
||||
pw_properties_serialize_dict(f, &props->dict, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue