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
e7a18625
Commit
e7a18625
authored
Apr 04, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/jack: workaround for libjack1 crash bug
parent
d8e423df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
NEWS
NEWS
+1
-0
jack_output_plugin.c
src/output/jack_output_plugin.c
+13
-0
No files found.
NEWS
View file @
e7a18625
...
...
@@ -4,6 +4,7 @@ ver 0.16.8 (2012/??/??)
- vorbis (and others): fix seeking at startup
- ffmpeg: read the "year" tag
* output:
- jack: workaround for libjack1 crash bug
- osx: fix stuttering due to buffering bug
* fix endless loop in text file reader
* update: skip symlinks in path that is to be updated
...
...
src/output/jack_output_plugin.c
View file @
e7a18625
...
...
@@ -143,6 +143,13 @@ mpd_jack_process(jack_nframes_t nframes, void *arg)
for
(
unsigned
i
=
0
;
i
<
jd
->
audio_format
.
channels
;
++
i
)
{
out
=
jack_port_get_buffer
(
jd
->
ports
[
i
],
nframes
);
if
(
out
==
NULL
)
/* workaround for libjack1 bug: if the server
connection fails, the process callback is
invoked anyway, but unable to get a
buffer */
continue
;
jack_ringbuffer_read
(
jd
->
ringbuffer
[
i
],
(
char
*
)
out
,
available
*
jack_sample_size
);
...
...
@@ -156,6 +163,12 @@ mpd_jack_process(jack_nframes_t nframes, void *arg)
for
(
unsigned
i
=
jd
->
audio_format
.
channels
;
i
<
jd
->
num_source_ports
;
++
i
)
{
out
=
jack_port_get_buffer
(
jd
->
ports
[
i
],
nframes
);
if
(
out
==
NULL
)
/* workaround for libjack1 bug: if the server
connection fails, the process callback is
invoked anyway, but unable to get a
buffer */
continue
;
for
(
jack_nframes_t
f
=
0
;
f
<
nframes
;
++
f
)
out
[
f
]
=
0
.
0
;
...
...
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