mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-11 13:30:07 -05:00
rename core_proxy -> core
Rename core_proxy to core and move the introspect and interface contents to core.h In an effort to promote the proxy API.
This commit is contained in:
parent
8ea78c2e3f
commit
ecc6b27cd7
54 changed files with 1068 additions and 1059 deletions
|
|
@ -940,11 +940,11 @@ gst_pipewire_src_open (GstPipeWireSrc * pwsrc)
|
|||
pw_thread_loop_lock (pwsrc->main_loop);
|
||||
|
||||
if (pwsrc->fd == -1)
|
||||
pwsrc->core_proxy = pw_context_connect (pwsrc->context, NULL, 0);
|
||||
pwsrc->core = pw_context_connect (pwsrc->context, NULL, 0);
|
||||
else
|
||||
pwsrc->core_proxy = pw_context_connect_fd (pwsrc->context, dup(pwsrc->fd), NULL, 0);
|
||||
pwsrc->core = pw_context_connect_fd (pwsrc->context, dup(pwsrc->fd), NULL, 0);
|
||||
|
||||
if (pwsrc->core_proxy == NULL)
|
||||
if (pwsrc->core == NULL)
|
||||
goto connect_error;
|
||||
|
||||
if (pwsrc->properties) {
|
||||
|
|
@ -954,7 +954,7 @@ gst_pipewire_src_open (GstPipeWireSrc * pwsrc)
|
|||
props = NULL;
|
||||
}
|
||||
|
||||
if ((pwsrc->stream = pw_stream_new (pwsrc->core_proxy,
|
||||
if ((pwsrc->stream = pw_stream_new (pwsrc->core,
|
||||
pwsrc->client_name, props)) == NULL)
|
||||
goto no_stream;
|
||||
|
||||
|
|
@ -1010,8 +1010,8 @@ gst_pipewire_src_close (GstPipeWireSrc * pwsrc)
|
|||
pw_stream_destroy (pwsrc->stream);
|
||||
pwsrc->stream = NULL;
|
||||
|
||||
pw_core_proxy_disconnect (pwsrc->core_proxy);
|
||||
pwsrc->core_proxy = NULL;
|
||||
pw_core_disconnect (pwsrc->core);
|
||||
pwsrc->core = NULL;
|
||||
}
|
||||
|
||||
static GstStateChangeReturn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue