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
e8044663
Commit
e8044663
authored
Jun 17, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/{alsa,osx}: use ConstBuffer::empty()
parent
8444c335
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+1
-1
OSXOutputPlugin.cxx
src/output/plugins/OSXOutputPlugin.cxx
+1
-1
No files found.
src/output/plugins/AlsaOutputPlugin.cxx
View file @
e8044663
...
...
@@ -939,7 +939,7 @@ AlsaOutput::Play(const void *chunk, size_t size)
assert
(
size
%
in_frame_size
==
0
);
const
auto
e
=
pcm_export
->
Export
({
chunk
,
size
});
if
(
e
.
size
==
0
)
if
(
e
.
empty
()
)
/* the DoP (DSD over PCM) filter converts two frames
at a time and ignores the last odd frame; if there
was only one frame (e.g. the last frame in the
...
...
src/output/plugins/OSXOutputPlugin.cxx
View file @
e8044663
...
...
@@ -921,7 +921,7 @@ OSXOutput::Play(const void *chunk, size_t size)
file), the result is empty; to avoid an endless
loop, bail out here, and pretend the one frame has
been played */
if
(
e
.
size
==
0
)
if
(
e
.
empty
()
)
return
size
;
size_t
bytes_written
=
ring_buffer
->
push
((
const
uint8_t
*
)
e
.
data
,
e
.
size
);
...
...
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