Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6262431c
Commit
6262431c
authored
Apr 13, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: open in blocking mode since we want blocking mode
parent
b00308eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
modules/audio_output/alsa.c
modules/audio_output/alsa.c
+1
-4
No files found.
modules/audio_output/alsa.c
View file @
6262431c
...
@@ -436,7 +436,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -436,7 +436,7 @@ static int Open( vlc_object_t *p_this )
/* Open the device */
/* Open the device */
msg_Dbg
(
p_aout
,
"opening ALSA device `%s'"
,
psz_device
);
msg_Dbg
(
p_aout
,
"opening ALSA device `%s'"
,
psz_device
);
int
val
=
snd_pcm_open
(
&
p_sys
->
p_snd_pcm
,
psz_device
,
int
val
=
snd_pcm_open
(
&
p_sys
->
p_snd_pcm
,
psz_device
,
SND_PCM_STREAM_PLAYBACK
,
SND_PCM_NONBLOCK
);
SND_PCM_STREAM_PLAYBACK
,
0
);
if
(
val
!=
0
)
if
(
val
!=
0
)
{
{
msg_Err
(
p_aout
,
"cannot open ALSA device `%s' (%s)"
,
msg_Err
(
p_aout
,
"cannot open ALSA device `%s' (%s)"
,
...
@@ -450,9 +450,6 @@ static int Open( vlc_object_t *p_this )
...
@@ -450,9 +450,6 @@ static int Open( vlc_object_t *p_this )
}
}
free
(
psz_device
);
free
(
psz_device
);
/* We want blocking mode */
snd_pcm_nonblock
(
p_sys
->
p_snd_pcm
,
0
);
snd_pcm_uframes_t
i_buffer_size
;
snd_pcm_uframes_t
i_buffer_size
;
snd_pcm_uframes_t
i_period_size
;
snd_pcm_uframes_t
i_period_size
;
int
i_channels
;
int
i_channels
;
...
...
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