Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
60f7ff3d
Commit
60f7ff3d
authored
Aug 31, 2011
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/pulse: reset callbacks before closing stream/context
Fixes assertion failure when a stream callback is invoked too late after a format change.
parent
e76c7529
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
pulse_output_plugin.c
src/output/pulse_output_plugin.c
+10
-0
No files found.
src/output/pulse_output_plugin.c
View file @
60f7ff3d
...
...
@@ -233,6 +233,13 @@ pulse_output_delete_stream(struct pulse_output *po)
assert
(
po
!=
NULL
);
assert
(
po
->
stream
!=
NULL
);
#if PA_CHECK_VERSION(0,9,8)
pa_stream_set_suspended_callback
(
po
->
stream
,
NULL
,
NULL
);
#endif
pa_stream_set_state_callback
(
po
->
stream
,
NULL
,
NULL
);
pa_stream_set_write_callback
(
po
->
stream
,
NULL
,
NULL
);
pa_stream_disconnect
(
po
->
stream
);
pa_stream_unref
(
po
->
stream
);
po
->
stream
=
NULL
;
...
...
@@ -247,6 +254,9 @@ pulse_output_delete_context(struct pulse_output *po)
assert
(
po
!=
NULL
);
assert
(
po
->
context
!=
NULL
);
pa_context_set_state_callback
(
po
->
context
,
NULL
,
NULL
);
pa_context_set_subscribe_callback
(
po
->
context
,
NULL
,
NULL
);
pa_context_disconnect
(
po
->
context
);
pa_context_unref
(
po
->
context
);
po
->
context
=
NULL
;
...
...
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