Skip to content
Snippets Groups Projects
Commit d93645af authored by Tristan Matthews's avatar Tristan Matthews
Browse files

pulse: unset some callbacks

Refs #52990

Change-Id: I9421c8fedc214a05e625fbf784285203721c24a4
parent 671a4af8
No related branches found
No related tags found
No related merge requests found
......@@ -98,6 +98,8 @@ AudioStream::~AudioStream()
// make sure we don't get any further callback
pa_stream_set_state_callback(audiostream_, NULL, NULL);
pa_stream_set_write_callback(audiostream_, NULL, NULL);
pa_stream_set_read_callback(audiostream_, NULL, NULL);
pa_stream_set_moved_callback(audiostream_, NULL, NULL);
pa_stream_set_underflow_callback(audiostream_, NULL, NULL);
pa_stream_set_overflow_callback(audiostream_, NULL, NULL);
......
......@@ -166,6 +166,7 @@ PulseLayer::~PulseLayer()
PulseMainLoopLock lock(mainloop_);
pa_context_set_state_callback(context_, NULL, NULL);
pa_context_set_subscribe_callback(context_, NULL, NULL);
pa_context_disconnect(context_);
pa_context_unref(context_);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment