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
c603409c
Commit
c603409c
authored
4 years ago
by
Julian Bouzas
Browse files
Options
Downloads
Patches
Plain Diff
m-config-policy: set the stream name to the media role propery by default
parent
26800b80
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-config-policy/context.c
+6
-2
6 additions, 2 deletions
modules/module-config-policy/context.c
with
6 additions
and
2 deletions
modules/module-config-policy/context.c
+
6
−
2
View file @
c603409c
...
...
@@ -50,6 +50,9 @@ wp_config_policy_context_get_endpoint_target (WpConfigPolicyContext *self,
" (name:'%s', media_class:'%s')"
,
WP_OBJECT_ARGS
(
ep
),
wp_endpoint_get_name
(
ep
),
wp_endpoint_get_media_class
(
ep
));
/* Check if the media role property is set, and use it as stream name */
stream_name
=
wp_proxy_get_property
(
WP_PROXY
(
ep
),
PW_KEY_MEDIA_ROLE
);
/* Check if the node target property is set, and use that target */
node_target
=
wp_proxy_get_property
(
WP_PROXY
(
ep
),
PW_KEY_NODE_TARGET
);
if
(
node_target
)
{
...
...
@@ -117,8 +120,9 @@ wp_config_policy_context_get_endpoint_target (WpConfigPolicyContext *self,
}
}
/* Use the stream name from the configuration file */
stream_name
=
data
->
te
.
stream
;
/* Use the stream name from the configuration file if NULL */
if
(
!
stream_name
)
stream_name
=
data
->
te
.
stream
;
if
(
target
)
g_object_ref
(
target
);
...
...
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