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
a6b9a013
Commit
a6b9a013
authored
May 30, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WaveOut: don't access b_starving (not really needed here)
parent
0707bc75
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
22 deletions
+15
-22
modules/audio_output/waveout.c
modules/audio_output/waveout.c
+15
-22
No files found.
modules/audio_output/waveout.c
View file @
a6b9a013
...
...
@@ -895,10 +895,9 @@ static void* WaveOutThread( void *data )
#define waveout_warn(msg) msg_Warn( p_aout, "aout_OutputNextBuffer no buffer "\
"got next_date=%d ms, "\
"%d frames to play, "\
"starving? %d, %s",(int)(next_date/(mtime_t)1000), \
i_queued_frames, \
p_aout->output.b_starving, msg);
"%d frames to play, %s",\
(int)(next_date/(mtime_t)1000), \
i_queued_frames, msg);
next_date
=
mdate
();
while
(
!
vlc_atomic_get
(
&
p_aout
->
output
.
p_sys
->
abort
)
)
...
...
@@ -930,25 +929,19 @@ static void* WaveOutThread( void *data )
if
(
!
p_buffer
)
{
#if 0
msg_Dbg( p_aout, "aout_OutputNextBuffer no buffer "\
"got next_date=%d ms, "\
"%d frames to play, "\
"starving? %d",(int)(next_date/(mtime_t)1000),
i_queued_frames,
p_aout->output.b_starving);
msg_Dbg( p_aout, "aout_OutputNextBuffer no buffer "
"got next_date=%d ms, "
"%d frames to play",
(int)(next_date/(mtime_t)1000),
i_queued_frames);
#endif
if
(
p_aout
->
output
.
b_starving
)
{
// means we are too early to request a new buffer?
waveout_warn
(
"waiting..."
)
next_date
=
aout_FifoFirstDate
(
p_aout
,
&
p_aout
->
output
.
fifo
);
mwait
(
next_date
-
AOUT_PTS_TOLERANCE
/
4
);
next_date
=
mdate
();
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
next_date
,
b_sleek
);
}
p_buffer
=
aout_OutputNextBuffer
(
p_aout
,
next_date
,
b_sleek
);
}
if
(
!
p_buffer
&&
i_queued_frames
)
...
...
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