Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
7347528a
Commit
7347528a
authored
Sep 02, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alsa: don't start playing before at least a period has been written to the alsa device
fixes #1165
parent
5d6ecb13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+9
-0
No files found.
modules/audio_output/alsa.c
View file @
7347528a
...
...
@@ -653,6 +653,15 @@ static int Open( vlc_object_t *p_this )
i_snd_rc
=
snd_pcm_sw_params_set_avail_min
(
p_sys
->
p_snd_pcm
,
p_sw
,
p_aout
->
output
.
i_nb_samples
);
/* start playing when one period has been written */
i_snd_rc
=
snd_pcm_sw_params_set_start_threshold
(
p_sys
->
p_snd_pcm
,
p_sw
,
ALSA_DEFAULT_PERIOD_SIZE
);
if
(
i_snd_rc
<
0
)
{
msg_Err
(
p_aout
,
"unable to set start threshold (%s)"
,
snd_strerror
(
i_snd_rc
)
);
goto
error
;
}
/* Commit software parameters. */
if
(
snd_pcm_sw_params
(
p_sys
->
p_snd_pcm
,
p_sw
)
<
0
)
...
...
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