mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
context: ensure the registry exists
Make sure we are watching the registry before we try to enumerate objects. When we wait for new object info, resync the pending operations because they might depend on the info.
This commit is contained in:
parent
d560499054
commit
5feedbfd42
4 changed files with 44 additions and 13 deletions
|
|
@ -52,7 +52,7 @@ 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 = pw_core_sync(c->core, 0, 0);
|
||||
o->seq = pw_core_sync(c->core, PW_ID_CORE, 0);
|
||||
pw_log_debug("operation %p: sync %d", o, o->seq);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue