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
0122510f
Commit
0122510f
authored
Jan 22, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
null: implemented finish() method
Free memory in the finish() method to make valgrind happy.
parent
e1707c7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
null_plugin.c
src/output/null_plugin.c
+13
-0
No files found.
src/output/null_plugin.c
View file @
0122510f
...
...
@@ -21,6 +21,8 @@
#include <glib.h>
#include <assert.h>
struct
null_data
{
Timer
*
timer
;
};
...
...
@@ -37,6 +39,16 @@ null_init(G_GNUC_UNUSED struct audio_output *audio_output,
return
nd
;
}
static
void
null_finish
(
void
*
data
)
{
struct
null_data
*
nd
=
data
;
assert
(
nd
->
timer
==
NULL
);
g_free
(
nd
);
}
static
bool
null_open
(
void
*
data
,
struct
audio_format
*
audio_format
)
{
...
...
@@ -85,6 +97,7 @@ null_cancel(void *data)
const
struct
audio_output_plugin
null_output_plugin
=
{
.
name
=
"null"
,
.
init
=
null_init
,
.
finish
=
null_finish
,
.
open
=
null_open
,
.
close
=
null_close
,
.
play
=
null_play
,
...
...
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