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
GSoC
GSoC2018
macOS
vlc
Commits
fa5495cf
Commit
fa5495cf
authored
Jul 09, 2011
by
Rémi Denis-Courmont
Browse files
Fix audio outputs access aout internals directly
parent
fd4a0ddc
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/audio_output/audioqueue.c
View file @
fa5495cf
...
...
@@ -159,9 +159,9 @@ void AudioQueueCallback(void * inUserData, AudioQueueRef inAQ, AudioQueueBufferR
aout_buffer_t
*
p_buffer
=
NULL
;
if
(
p_aout
)
{
vlc_mutex_lock
(
&
p_aout
->
output_fifo_
lock
);
vlc_mutex_lock
(
&
p_aout
->
lock
);
p_buffer
=
aout_FifoPop
(
&
p_aout
->
output
.
fifo
);
vlc_mutex_unlock
(
&
p_aout
->
output_fifo_
lock
);
vlc_mutex_unlock
(
&
p_aout
->
lock
);
}
if
(
p_buffer
!=
NULL
)
{
...
...
modules/audio_output/sdl.c
View file @
fa5495cf
...
...
@@ -251,9 +251,9 @@ static void SDLCallback( void * _p_aout, uint8_t * p_stream, int i_len )
* hardware latency, or the buffer state. So we just pop data and throw
* it at SDL's face. Nah. */
vlc_mutex_lock
(
&
p_aout
->
output_fifo_
lock
);
vlc_mutex_lock
(
&
p_aout
->
lock
);
p_buffer
=
aout_FifoPop
(
&
p_aout
->
output
.
fifo
);
vlc_mutex_unlock
(
&
p_aout
->
output_fifo_
lock
);
vlc_mutex_unlock
(
&
p_aout
->
lock
);
if
(
p_buffer
!=
NULL
)
{
...
...
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