Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
savoirfairelinux
jami-daemon
Commits
14cca1c6
Commit
14cca1c6
authored
Aug 06, 2012
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* #11278: alsa: increase sleep between calls to open
parent
543dc1b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
daemon/src/audio/alsa/alsalayer.cpp
daemon/src/audio/alsa/alsalayer.cpp
+1
-1
No files found.
daemon/src/audio/alsa/alsalayer.cpp
View file @
14cca1c6
...
...
@@ -160,7 +160,7 @@ bool AlsaLayer::openDevice(snd_pcm_t **pcm, const std::string &dev, snd_pcm_stre
// Retry if busy, since dmix plugin may not have released the device yet
for
(
int
tries
=
0
;
tries
<
MAX_RETRIES
and
err
==
-
EBUSY
;
++
tries
)
{
const
struct
timespec
req
=
{
0
,
10000000
};
const
struct
timespec
req
=
{
0
,
10000000
0L
};
nanosleep
(
&
req
,
0
);
err
=
snd_pcm_open
(
pcm
,
dev
.
c_str
(),
stream
,
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