aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/CdioParanoiaInputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-28 20:32:23 +0100
committerMax Kellermann <max@duempel.org>2013-01-28 23:29:43 +0100
commitdcf55c7e328578d435eb14277cb6ba9e072f7e9c (patch)
tree0488d2de5ecfd090cce2e00cfbc4cdcd342c8194 /src/input/CdioParanoiaInputPlugin.cxx
parente565cd440497d3b693e281046af485c667491441 (diff)
downloadmpd-dcf55c7e328578d435eb14277cb6ba9e072f7e9c.tar.gz
mpd-dcf55c7e328578d435eb14277cb6ba9e072f7e9c.tar.xz
mpd-dcf55c7e328578d435eb14277cb6ba9e072f7e9c.zip
InputStream: add constructor/destructor
Eliminate input_stream_init() and input_stream_deinit().
Diffstat (limited to 'src/input/CdioParanoiaInputPlugin.cxx')
-rw-r--r--src/input/CdioParanoiaInputPlugin.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/input/CdioParanoiaInputPlugin.cxx b/src/input/CdioParanoiaInputPlugin.cxx
index 129eb75b7..942eefb99 100644
--- a/src/input/CdioParanoiaInputPlugin.cxx
+++ b/src/input/CdioParanoiaInputPlugin.cxx
@@ -56,11 +56,10 @@ struct CdioParanoiaInputStream {
CdioParanoiaInputStream(const char *uri, Mutex &mutex, Cond &cond,
int _trackno)
- :drv(nullptr), cdio(nullptr), para(nullptr),
+ :base(input_plugin_cdio_paranoia, uri, mutex, cond),
+ drv(nullptr), cdio(nullptr), para(nullptr),
trackno(_trackno)
{
- input_stream_init(&base, &input_plugin_cdio_paranoia, uri,
- mutex, cond);
}
~CdioParanoiaInputStream() {
@@ -70,8 +69,6 @@ struct CdioParanoiaInputStream {
cdio_cddap_close_no_free_cdio(drv);
if (cdio != nullptr)
cdio_destroy(cdio);
-
- input_stream_deinit(&base);
}
};