diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-11-21 17:53:28 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-11-21 17:53:28 +0100 |
commit | 772bf2dce211460c10359163bde3c462d31102f5 (patch) | |
tree | b98387f2f0f9ef3afb1b91142848487527f9fee2 | |
parent | bca114f8c5194237ba54dd104e5878c906028faf (diff) |
filter: Use method implementation directly
-rw-r--r-- | src/pipewire/filter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pipewire/filter.c b/src/pipewire/filter.c index a832551d..12b88db3 100644 --- a/src/pipewire/filter.c +++ b/src/pipewire/filter.c @@ -125,7 +125,6 @@ struct filter { struct pw_node *node; struct spa_node impl_node; - struct spa_node_methods node_methods; struct spa_hook_list hooks; struct spa_callbacks callbacks; struct spa_io_position *position; @@ -929,6 +928,7 @@ static void on_remote_state_changed(void *_data, enum pw_remote_state old, case PW_REMOTE_STATE_ERROR: filter_set_state(filter, PW_FILTER_STATE_ERROR, error); break; + case PW_REMOTE_STATE_UNCONNECTED: filter_set_state(filter, PW_FILTER_STATE_UNCONNECTED, "remote unconnected"); break; @@ -1191,12 +1191,11 @@ pw_filter_connect(struct pw_filter *filter, pw_log_debug(NAME" %p: connect", filter); impl->flags = flags; - impl->node_methods = impl_node; impl->impl_node.iface = SPA_INTERFACE_INIT( SPA_TYPE_INTERFACE_Node, SPA_VERSION_NODE, - &impl->node_methods, impl); + &impl_node, impl); clear_params(impl, NULL, SPA_ID_INVALID); for (i = 0; i < n_params; i++) { |