diff options
author | Max Kellermann <max@duempel.org> | 2013-01-28 20:32:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-28 23:29:43 +0100 |
commit | dcf55c7e328578d435eb14277cb6ba9e072f7e9c (patch) | |
tree | 0488d2de5ecfd090cce2e00cfbc4cdcd342c8194 /src/input/MmsInputPlugin.cxx | |
parent | e565cd440497d3b693e281046af485c667491441 (diff) | |
download | mpd-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/MmsInputPlugin.cxx')
-rw-r--r-- | src/input/MmsInputPlugin.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/input/MmsInputPlugin.cxx b/src/input/MmsInputPlugin.cxx index be583e283..b347eb92b 100644 --- a/src/input/MmsInputPlugin.cxx +++ b/src/input/MmsInputPlugin.cxx @@ -42,9 +42,8 @@ struct MmsInputStream { MmsInputStream(const char *uri, Mutex &mutex, Cond &cond, mmsx_t *_mms) - :mms(_mms), eof(false) { - input_stream_init(&base, &input_plugin_mms, uri, mutex, cond); - + :base(input_plugin_mms, uri, mutex, cond), + mms(_mms), eof(false) { /* XX is this correct? at least this selects the ffmpeg decoder, which seems to work fine*/ base.mime = g_strdup("audio/x-ms-wma"); @@ -54,7 +53,6 @@ struct MmsInputStream { ~MmsInputStream() { mmsx_close(mms); - input_stream_deinit(&base); } }; |