Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
be6c72d1
Commit
be6c72d1
authored
Feb 02, 2009
by
Emmanuel Milou
Browse files
FIx the switching layer bug
parent
9e24b986
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/audio/pulselayer.cpp
View file @
be6c72d1
...
...
@@ -44,7 +44,12 @@ static void audioCallback ( pa_stream* s, size_t bytes, void* userdata )
// Destructor
PulseLayer
::~
PulseLayer
(
void
)
{
closeLayer
();
/* Delete the pointer streams */
delete
playback
;
delete
record
;
pa_context_disconnect
(
context
);
pa_context_unref
(
context
);
}
void
...
...
@@ -58,15 +63,6 @@ PulseLayer::closeLayer( void )
while
(
PulseLayer
::
streamState
!=
2
)
;
PulseLayer
::
streamState
=
0
;
delete
playback
;
delete
record
;
pa_context_disconnect
(
context
);
pa_context_unref
(
context
);
//TODO Remove this ugly hack
sleep
(
2
);
}
void
...
...
Write
Preview
Supports
Markdown
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