Julian Bouzas
1d00104642
config-policy: only handle the highest priority endpoint for a target, and the ones with keep=true
2019-12-16 14:05:14 -05:00
Julian Bouzas
eda8507ef7
config-policy: use the default session endpoint if target-endpoint is not defined
2019-12-16 13:37:05 -05:00
Julian Bouzas
3fe1e96e2e
config-policy: remove parsing of streams file
...
This is now done by the config endpoint module
2019-12-16 13:37:05 -05:00
Julian Bouzas
db7a3a3b9c
config-policy: sort endpoints by creation time when finding target
2019-12-13 14:43:50 -05:00
George Kiagiadakis
57ac90b188
config-policy: avoid race condition in the unit tests
...
Clear self->pending_endpoint before sending the done signal,
because the signal will trigger a new endpoint to be added in the
unit test and this may happen before g_clear_object is called,
in which case adding the new endpoint fails
2019-12-11 19:15:02 +02:00
George Kiagiadakis
c0455c981d
lib: rename WpEndpoint* to WpBaseEndpoint*
...
to avoid name clashing with the upcoming WpEndpoint interface
that is going to be the common interface of Wp{Proxy,Exported}Endpoint
2019-12-11 19:05:05 +02:00
George Kiagiadakis
3a4040ddaf
config-policy: fix typo in variable check
2019-12-11 01:27:41 +02:00
George Kiagiadakis
133469d566
config-policy: fix stream priority logic when the stream name comes from media.role
...
the _can_link function was previously assuming that the target
stream is always specified in the configuration file
2019-12-11 01:04:41 +02:00
George Kiagiadakis
dcecc217d6
config-policy: add some more debug statements
2019-12-11 00:45:05 +02:00
Julian Bouzas
34ebbe47d7
config-policy: prioritize role from configuration file
...
The role defined in the endpoint-link configuration files must have higher
priority than the one set in the endpoint. If none of them are set, the config
policy fallbacks to the lowest one defined in the streams configuration file
2019-12-05 10:50:10 -05:00
Julian Bouzas
664db8a200
modules: add config policy module
2019-12-04 16:38:35 -05:00