Commit 729aee5c authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

config-policy: do not unlink other endpoints when linking one with keep=true

keep=true should work in both ways:
* keep the endpoint with this property linked at all times
* keep other already linked endpoints when linking this one
parent 3c5b5ea0
......@@ -125,8 +125,8 @@ wp_config_policy_handle_pending_link (WpConfigPolicy *self,
}
}
/* Unlink the target links that are not kept if endpoint is capture */
if (!is_capture && target_linked) {
/* Unlink the target links that are not kept if endpoint is playback */
if (!is_capture && target_linked && !li->keep) {
GPtrArray *links = wp_base_endpoint_get_links (target);
for (guint i = 0; i < links->len; i++) {
WpBaseEndpointLink *l = g_ptr_array_index (links, i);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment