Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5bb15508
Commit
5bb15508
authored
Apr 05, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: small simplification
parent
542f25d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+1
-7
No files found.
modules/audio_output/alsa.c
View file @
5bb15508
...
...
@@ -728,6 +728,7 @@ static void Close( vlc_object_t *p_this )
vlc_join
(
p_sys
->
thread
,
NULL
);
vlc_sem_destroy
(
&
p_sys
->
wait
);
snd_pcm_drop
(
p_sys
->
p_snd_pcm
);
snd_pcm_close
(
p_sys
->
p_snd_pcm
);
#ifdef ALSA_DEBUG
snd_output_close
(
p_sys
->
p_snd_stderr
);
...
...
@@ -735,11 +736,6 @@ static void Close( vlc_object_t *p_this )
free
(
p_sys
);
}
static
void
pcm_drop
(
void
*
pcm
)
{
snd_pcm_drop
(
pcm
);
}
/*****************************************************************************
* ALSAThread: asynchronous thread used to DMA the data to the device
*****************************************************************************/
...
...
@@ -752,12 +748,10 @@ static void* ALSAThread( void *data )
vlc_sem_wait
(
&
p_sys
->
wait
);
mwait
(
p_sys
->
start_date
-
AOUT_PTS_TOLERANCE
/
4
);
vlc_cleanup_push
(
pcm_drop
,
p_sys
->
p_snd_pcm
);
for
(;;)
ALSAFill
(
p_aout
);
assert
(
0
);
vlc_cleanup_pop
();
}
/*****************************************************************************
...
...
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