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
65778a37
Commit
65778a37
authored
Jan 10, 2019
by
Niklas Haas
Committed by
Max Kellermann
Oct 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/Jack: mark ports as terminal
This is the correct thing to do for ports from which a signal ultimately "originates", such as is the case with mpd.
parent
d9841668
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
NEWS
NEWS
+2
-0
JackOutputPlugin.cxx
src/output/plugins/JackOutputPlugin.cxx
+2
-1
No files found.
NEWS
View file @
65778a37
ver 0.21.17 (not yet released)
ver 0.21.17 (not yet released)
* outputs
- jack: mark ports as terminal
ver 0.21.16 (2019/10/16)
ver 0.21.16 (2019/10/16)
* queue
* queue
...
...
src/output/plugins/JackOutputPlugin.cxx
View file @
65778a37
...
@@ -403,10 +403,11 @@ JackOutput::Connect()
...
@@ -403,10 +403,11 @@ JackOutput::Connect()
jack_on_shutdown
(
client
,
mpd_jack_shutdown
,
this
);
jack_on_shutdown
(
client
,
mpd_jack_shutdown
,
this
);
for
(
unsigned
i
=
0
;
i
<
num_source_ports
;
++
i
)
{
for
(
unsigned
i
=
0
;
i
<
num_source_ports
;
++
i
)
{
unsigned
long
portflags
=
JackPortIsOutput
|
JackPortIsTerminal
;
ports
[
i
]
=
jack_port_register
(
client
,
ports
[
i
]
=
jack_port_register
(
client
,
source_ports
[
i
].
c_str
(),
source_ports
[
i
].
c_str
(),
JACK_DEFAULT_AUDIO_TYPE
,
JACK_DEFAULT_AUDIO_TYPE
,
JackPortIsOutput
,
0
);
portflags
,
0
);
if
(
ports
[
i
]
==
nullptr
)
{
if
(
ports
[
i
]
==
nullptr
)
{
Disconnect
();
Disconnect
();
throw
FormatRuntimeError
(
"Cannot register output port
\"
%s
\"
"
,
throw
FormatRuntimeError
(
"Cannot register output port
\"
%s
\"
"
,
...
...
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