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:
Arun Raghavan 2025-01-28 10:59:48 -05:00 committed by Wim Taymans
parent 516f86c329
commit 9ca9579978

View file

@ -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);