Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
e0ac4474
Commit
e0ac4474
authored
Nov 27, 2002
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a segfault by adding a mutex_lock() (thx fenrir)
parent
3b078b7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
modules/gui/beos/AudioOutput.cpp
modules/gui/beos/AudioOutput.cpp
+7
-10
No files found.
modules/gui/beos/AudioOutput.cpp
View file @
e0ac4474
...
...
@@ -2,7 +2,7 @@
* AudioOutput.cpp: BeOS audio output
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: AudioOutput.cpp,v 1.1
7 2002/11/27 05:36:41
titer Exp $
* $Id: AudioOutput.cpp,v 1.1
8 2002/11/27 06:27:52
titer Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -129,19 +129,16 @@ static void Play( void *aout, void *p_buffer, size_t i_size,
aout_buffer_t
*
p_aout_buffer
;
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
aout
;
vlc_mutex_lock
(
&
p_aout
->
output_fifo_lock
);
p_aout_buffer
=
aout_FifoPop
(
p_aout
,
&
p_aout
->
output
.
fifo
);
vlc_mutex_unlock
(
&
p_aout
->
output_fifo_lock
);
if
(
p_aout_buffer
!=
NULL
)
{
/* sometimes p_aout_buffer is not NULL but still isn't valid.
we check i_nb_bytes so we are sure it is */
if
(
p_aout_buffer
->
i_nb_bytes
==
BUFFER_SIZE
)
{
memcpy
(
(
float
*
)
p_buffer
,
p_aout_buffer
->
p_buffer
,
BUFFER_SIZE
);
aout_BufferFree
(
p_aout_buffer
);
}
memcpy
(
(
float
*
)
p_buffer
,
p_aout_buffer
->
p_buffer
,
MIN
(
BUFFER_SIZE
,
p_aout_buffer
->
i_nb_bytes
)
);
aout_BufferFree
(
p_aout_buffer
);
}
}
...
...
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