media-session: Add method to destroy a global

Destroy the stream when it is disconnected and it was marked as
DONT_RECONNECT.
This commit is contained in:
Wim Taymans 2020-04-02 15:26:39 +02:00
parent a86f70c13d
commit c20100eabb
3 changed files with 9 additions and 1 deletions

View file

@ -487,7 +487,7 @@ static int rescan_node(struct impl *impl, struct node *n)
str = spa_dict_lookup(props, PW_KEY_NODE_DONT_RECONNECT);
if (str != NULL && pw_properties_parse_bool(str)) {
// pw_registry_destroy(impl->registry, n->id);
sm_media_session_destroy_object(impl->session, n->id);
}
obj = sm_media_session_find_object(impl->session, n->client_id);