context: add option to disable registry

This commit is contained in:
Wim Taymans 2017-04-21 16:39:14 +02:00
parent c29fed1ac8
commit 02d4dc0efd
9 changed files with 44 additions and 23 deletions

View file

@ -373,7 +373,7 @@ gst_pinos_device_provider_probe (GstDeviceProvider * provider)
if (!(c = pinos_context_new (l, self->client_name, NULL)))
goto failed;
pinos_context_connect (c);
pinos_context_connect (c, 0);
for (;;) {
PinosContextState state;
@ -479,7 +479,7 @@ gst_pinos_device_provider_start (GstDeviceProvider * provider)
&self->ctx_subscription,
on_context_subscription);
pinos_context_connect (self->context);
pinos_context_connect (self->context, 0);
for (;;) {
PinosContextState state;

View file

@ -823,7 +823,7 @@ gst_pinos_sink_open (GstPinosSink * pinossink)
pinos_signal_add (&pinossink->ctx->state_changed, &pinossink->ctx_state_changed, on_ctx_state_changed);
pinos_context_connect (pinossink->ctx);
pinos_context_connect (pinossink->ctx, PINOS_CONTEXT_FLAG_NO_REGISTRY);
while (TRUE) {
PinosContextState state = pinossink->ctx->state;

View file

@ -1037,7 +1037,7 @@ gst_pinos_src_open (GstPinosSrc * pinossrc)
pinos_signal_add (&pinossrc->ctx->state_changed, &pinossrc->ctx_state_changed, on_ctx_state_changed);
pinos_context_connect (pinossrc->ctx);
pinos_context_connect (pinossrc->ctx, PINOS_CONTEXT_FLAG_NO_REGISTRY);
while (TRUE) {
PinosContextState state = pinossrc->ctx->state;