mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
rtp: Initialise source receiving state to true be default
Because we don't know the stream state at the start of streaming, if clients are deciding to connect on the basis of this flag, they will never connect if we default to true. So let's be optimistic by default and we'll find out on timeout if there actually isn't data to receive.
This commit is contained in:
parent
516f86c329
commit
9ca9579978
1 changed files with 3 additions and 1 deletions
|
|
@ -661,7 +661,9 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
"stream.may-pause", false);
|
||||
impl->standby = false;
|
||||
impl->waiting = true;
|
||||
pw_properties_set(stream_props, "rtp.receiving", "false");
|
||||
/* Because we don't know the stream receiving state at the start, we try to fake it
|
||||
* till we make it (or get timed out) */
|
||||
pw_properties_set(stream_props, "rtp.receiving", "true");
|
||||
|
||||
impl->cleanup_interval = pw_properties_get_uint32(props,
|
||||
"cleanup.sec", DEFAULT_CLEANUP_SEC);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue