Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wireplumber
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pkg
wireplumber
Commits
601749d7
Commit
601749d7
authored
5 years ago
by
Julian Bouzas
Browse files
Options
Downloads
Patches
Plain Diff
audio-softdsp-endpoint: set module instead of core in the module data
parent
fc7ebc2c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/module-pw-alsa-udev.c
+6
-5
6 additions, 5 deletions
modules/module-pw-alsa-udev.c
with
6 additions
and
5 deletions
modules/module-pw-alsa-udev.c
+
6
−
5
View file @
601749d7
...
...
@@ -17,7 +17,7 @@
struct
impl
{
Wp
Core
*
cor
e
;
Wp
Module
*
modul
e
;
/* Remote */
struct
spa_hook
remote_listener
;
...
...
@@ -85,6 +85,7 @@ proxy_node_created(GObject *initable, GAsyncResult *res, gpointer data)
{
struct
proxy_info
*
pi
=
data
;
const
struct
impl
*
impl
=
pi
->
impl
;
g_autoptr
(
WpCore
)
core
=
wp_module_get_core
(
impl
->
module
);
g_autoptr
(
WpProxyNode
)
proxy_node
=
NULL
;
struct
endpoint_info
*
ei
=
NULL
;
GVariantBuilder
b
;
...
...
@@ -115,7 +116,7 @@ proxy_node_created(GObject *initable, GAsyncResult *res, gpointer data)
endpoint_props
=
g_variant_builder_end
(
&
b
);
/* Create and register the endpoint */
endpoint
=
wp_factory_make
(
impl
->
core
,
"pw-audio-softdsp-endpoint"
,
endpoint
=
wp_factory_make
(
core
,
"pw-audio-softdsp-endpoint"
,
WP_TYPE_ENDPOINT
,
endpoint_props
);
/* Register the endpoint */
...
...
@@ -272,7 +273,7 @@ module_destroy (gpointer data)
}
struct
impl
*
module_create
(
WpCore
*
core
)
module_create
(
WpModule
*
module
,
WpCore
*
core
)
{
struct
impl
*
impl
;
WpRemote
*
remote
;
...
...
@@ -281,7 +282,7 @@ module_create (WpCore * core)
impl
=
g_new0
(
struct
impl
,
1
);
/* Set core */
impl
->
core
=
cor
e
;
impl
->
module
=
modul
e
;
/* Set remote */
remote
=
wp_core_get_global
(
core
,
WP_GLOBAL_REMOTE_PIPEWIRE
);
...
...
@@ -300,7 +301,7 @@ void
wireplumber__module_init
(
WpModule
*
module
,
WpCore
*
core
,
GVariant
*
args
)
{
/* Create the impl */
struct
impl
*
impl
=
module_create
(
core
);
struct
impl
*
impl
=
module_create
(
module
,
core
);
/* Set destroy callback for impl */
wp_module_set_destroy_callback
(
module
,
module_destroy
,
impl
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment