diff --git a/src/internal.h b/src/internal.h index bf806424d..970969043 100644 --- a/src/internal.h +++ b/src/internal.h @@ -271,8 +271,6 @@ struct pa_context { pa_proplist *proplist; pa_mainloop_api *mainloop; - uint32_t seq; - int error; pa_context_state_t state; diff --git a/src/introspect.c b/src/introspect.c index 4f014ea78..20acc9fce 100644 --- a/src/introspect.c +++ b/src/introspect.c @@ -129,7 +129,7 @@ static int device_event_param(void *object, pw_log_warn("device %d: can't parse profile", g->id); return -EINVAL; } - pw_array_add_ptr(&g->card_info.profiles, pw_spa_pod_copy(param)); + pw_array_add_ptr(&g->card_info.profiles, spa_pod_copy(param)); pw_log_debug("device %d: enum profile %d: \"%s\"", g->id, id, name); break; } diff --git a/src/operation.c b/src/operation.c index 6b7507b53..2e9e863f8 100644 --- a/src/operation.c +++ b/src/operation.c @@ -52,9 +52,8 @@ pa_operation *pa_operation_new(pa_context *c, pa_stream *s, pa_operation_cb_t cb int pa_operation_sync(pa_operation *o) { pa_context *c = o->context; - o->seq = ++c->seq; + o->seq = pw_core_proxy_sync(c->core_proxy, 0); pw_log_debug("operation %p: sync %d", o, o->seq); - pw_core_proxy_sync(c->core_proxy, 0, o->seq); return 0; }