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
6c480d7d
Commit
6c480d7d
authored
Mar 26, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pulse_mixer: removed superfluous NULL checks in close()
When the MPD core knows that the pulse mixer is open, pm->mainloop and pm->context must be non-NULL.
parent
8cf206f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
pulse_mixer.c
src/mixer/pulse_mixer.c
+4
-12
No files found.
src/mixer/pulse_mixer.c
View file @
6c480d7d
...
...
@@ -255,19 +255,11 @@ static void
pulse_mixer_close
(
G_GNUC_UNUSED
struct
mixer
*
data
)
{
struct
pulse_mixer
*
pm
=
(
struct
pulse_mixer
*
)
data
;
if
(
pm
->
mainloop
)
pa_threaded_mainloop_stop
(
pm
->
mainloop
);
if
(
pm
->
context
)
{
pa_context_disconnect
(
pm
->
context
);
pa_context_unref
(
pm
->
context
);
pm
->
context
=
NULL
;
}
if
(
pm
->
mainloop
)
{
pa_threaded_mainloop_free
(
pm
->
mainloop
);
pm
->
mainloop
=
NULL
;
}
pa_threaded_mainloop_stop
(
pm
->
mainloop
);
pa_context_disconnect
(
pm
->
context
);
pa_context_unref
(
pm
->
context
);
pa_threaded_mainloop_free
(
pm
->
mainloop
);
pm
->
online
=
false
;
}
...
...
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