Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
c0e570cd
Commit
c0e570cd
authored
Sep 10, 2013
by
Tristan Matthews
Browse files
* #29632: opensl: fix buffer access
parent
d092805a
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/audio/opensl/opensllayer.cpp
View file @
c0e570cd
...
...
@@ -448,7 +448,7 @@ OpenSLLayer::startAudioPlayback()
buffer
.
reset
();
result
=
(
*
playbackBufferQueue_
)
->
Enqueue
(
playbackBufferQueue_
,
&
buffer
.
getData
(),
buffer
.
size
());
result
=
(
*
playbackBufferQueue_
)
->
Enqueue
(
playbackBufferQueue_
,
buffer
.
getData
()
[
0
].
data
()
,
buffer
.
size
());
if
(
SL_RESULT_SUCCESS
!=
result
)
{
DEBUG
(
"Error could not enqueue initial buffers
\n
"
);
...
...
@@ -490,7 +490,7 @@ OpenSLLayer::startAudioCapture()
buffer
.
reset
();
DEBUG
(
"Enqueue record buffer
\n
"
);
result
=
(
*
recorderBufferQueue_
)
->
Enqueue
(
recorderBufferQueue_
,
&
buffer
.
getData
(),
buffer
.
size
());
result
=
(
*
recorderBufferQueue_
)
->
Enqueue
(
recorderBufferQueue_
,
buffer
.
getData
()
[
0
].
data
()
,
buffer
.
size
());
// the most likely other result is SL_RESULT_BUFFER_INSUFFICIENT,
// which for this code example would indicate a programming error
...
...
Write
Preview
Supports
Markdown
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