mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
pipewiresink: take lock for stream methods
This commit is contained in:
parent
6b2d77e64d
commit
b899d43401
1 changed files with 2 additions and 0 deletions
|
|
@ -282,7 +282,9 @@ pool_activated (GstPipeWirePool *pool, GstPipeWireSink *sink)
|
||||||
PROP (&f[1], ctx->type.param_alloc_meta_enable.ringbufferAlign, SPA_POD_TYPE_INT, 16));
|
PROP (&f[1], ctx->type.param_alloc_meta_enable.ringbufferAlign, SPA_POD_TYPE_INT, 16));
|
||||||
port_params[2] = SPA_POD_BUILDER_DEREF (&b, f[0].ref, struct spa_param);
|
port_params[2] = SPA_POD_BUILDER_DEREF (&b, f[0].ref, struct spa_param);
|
||||||
|
|
||||||
|
pw_thread_main_loop_lock (sink->main_loop);
|
||||||
pw_stream_finish_format (sink->stream, SPA_RESULT_OK, port_params, 2);
|
pw_stream_finish_format (sink->stream, SPA_RESULT_OK, port_params, 2);
|
||||||
|
pw_thread_main_loop_unlock (sink->main_loop);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue