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
d0aa154e
Commit
d0aa154e
authored
Nov 09, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/null: migrate from class Error to C++ exceptions
parent
df4616ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
18 deletions
+6
-18
NullOutputPlugin.cxx
src/output/plugins/NullOutputPlugin.cxx
+6
-18
No files found.
src/output/plugins/NullOutputPlugin.cxx
View file @
d0aa154e
...
@@ -28,17 +28,14 @@ class NullOutput {
...
@@ -28,17 +28,14 @@ class NullOutput {
AudioOutput
base
;
AudioOutput
base
;
bool
sync
;
const
bool
sync
;
Timer
*
timer
;
Timer
*
timer
;
public
:
public
:
NullOutput
()
NullOutput
(
const
ConfigBlock
&
block
)
:
base
(
null_output_plugin
)
{}
:
base
(
null_output_plugin
,
block
),
sync
(
block
.
GetBlockValue
(
"sync"
,
true
))
{}
bool
Initialize
(
const
ConfigBlock
&
block
,
Error
&
error
)
{
return
base
.
Configure
(
block
,
error
);
}
static
NullOutput
*
Create
(
const
ConfigBlock
&
block
,
Error
&
error
);
static
NullOutput
*
Create
(
const
ConfigBlock
&
block
,
Error
&
error
);
...
@@ -78,18 +75,9 @@ public:
...
@@ -78,18 +75,9 @@ public:
};
};
inline
NullOutput
*
inline
NullOutput
*
NullOutput
::
Create
(
const
ConfigBlock
&
block
,
Error
&
error
)
NullOutput
::
Create
(
const
ConfigBlock
&
block
,
Error
&
)
{
{
NullOutput
*
nd
=
new
NullOutput
();
return
new
NullOutput
(
block
);
if
(
!
nd
->
Initialize
(
block
,
error
))
{
delete
nd
;
return
nullptr
;
}
nd
->
sync
=
block
.
GetBlockValue
(
"sync"
,
true
);
return
nd
;
}
}
typedef
AudioOutputWrapper
<
NullOutput
>
Wrapper
;
typedef
AudioOutputWrapper
<
NullOutput
>
Wrapper
;
...
...
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