pulse: guard against NULL core

See #365
This commit is contained in:
Wim Taymans 2020-11-04 17:41:40 +01:00
parent b8c7b36d3b
commit 7a43769648

View file

@ -322,7 +322,8 @@ static void do_global_sync(struct global *g)
static void global_sync(struct global *g) static void global_sync(struct global *g)
{ {
pa_context *c = g->context; pa_context *c = g->context;
c->pending_seq = pw_core_sync(c->core, PW_ID_CORE, c->pending_seq); if (c->core != NULL)
c->pending_seq = pw_core_sync(c->core, PW_ID_CORE, c->pending_seq);
g->sync = true; g->sync = true;
} }