Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
ad7d47a8
Commit
ad7d47a8
authored
Jan 17, 2023
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/PipeWire: use PW_KEY_TARGET_OBJECT with PipeWire 0.3.64
Closes
https://github.com/MusicPlayerDaemon/MPD/issues/1721
parent
0948c607
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
NEWS
NEWS
+2
-0
PipeWireOutputPlugin.cxx
src/output/plugins/PipeWireOutputPlugin.cxx
+7
-1
No files found.
NEWS
View file @
ad7d47a8
...
...
@@ -3,6 +3,8 @@ ver 0.23.12 (not yet released)
- curl: require CURL 7.55.0 or later
* tags
- fix crash bug due to race condition
* output
- pipewire: adjust to PipeWire 0.3.64 API change
* fix build failures with GCC 13
ver 0.23.11 (2022/11/28)
...
...
src/output/plugins/PipeWireOutputPlugin.cxx
View file @
ad7d47a8
...
...
@@ -523,7 +523,13 @@ PipeWireOutput::Open(AudioFormat &audio_format)
pw_properties_setf
(
props
,
PW_KEY_REMOTE_NAME
,
"%s"
,
remote
);
if
(
target
!=
nullptr
&&
target_id
==
PW_ID_ANY
)
pw_properties_setf
(
props
,
PW_KEY_NODE_TARGET
,
"%s"
,
target
);
pw_properties_setf
(
props
,
#if PW_CHECK_VERSION(0, 3, 64)
PW_KEY_TARGET_OBJECT
,
#else
PW_KEY_NODE_TARGET
,
#endif
"%s"
,
target
);
#ifdef PW_KEY_NODE_RATE
/* ask PipeWire to change the graph sample rate to ours
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment