mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
module-rtp/stream: Add ability to set marker on first packet
This commit is contained in:
parent
98db54f55d
commit
9eba60a635
2 changed files with 10 additions and 1 deletions
|
|
@ -58,6 +58,7 @@ struct impl {
|
|||
unsigned have_ssrc:1;
|
||||
unsigned ignore_ssrc:1;
|
||||
unsigned have_seq:1;
|
||||
unsigned marker_on_first:1;
|
||||
uint32_t ts_offset;
|
||||
uint32_t psamples;
|
||||
uint32_t mtu;
|
||||
|
|
@ -132,6 +133,8 @@ static int stream_start(struct impl *impl)
|
|||
if (impl->started)
|
||||
return 0;
|
||||
|
||||
impl->first = true;
|
||||
|
||||
rtp_stream_emit_state_changed(impl, true, NULL);
|
||||
|
||||
impl->started = true;
|
||||
|
|
@ -364,6 +367,7 @@ struct rtp_stream *rtp_stream_new(struct pw_core *core,
|
|||
if (pw_properties_get(props, PW_KEY_NODE_NETWORK) == NULL)
|
||||
pw_properties_set(props, PW_KEY_NODE_NETWORK, "true");
|
||||
|
||||
impl->marker_on_first = pw_properties_get_bool(props, "sess.marker-on-first", false);
|
||||
impl->ignore_ssrc = pw_properties_get_bool(props, "sess.ignore-ssrc", false);
|
||||
impl->direct_timestamp = pw_properties_get_bool(props, "sess.ts-direct", false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue