stream: handle proxy destroy

When the proxy is destroyed, mark the stream as unconnected and remove
our reference to the proxy.
This commit is contained in:
Wim Taymans 2018-12-14 16:37:59 +01:00
parent 2025a9ad3b
commit 3be759ced2
3 changed files with 16 additions and 0 deletions

View file

@ -598,7 +598,9 @@ struct pw_stream {
char *error; /**< error reason when state is in error */
struct spa_hook_list listener_list;
struct pw_proxy *proxy;
struct spa_hook proxy_listener;
};
#define pw_factory_events_emit(s,m,v,...) spa_hook_list_call(&s->listener_list, struct pw_factory_events, m, v, ##__VA_ARGS__)