aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/DespotifyInputPlugin.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/DespotifyInputPlugin.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/DespotifyInputPlugin.cxx')
-rw-r--r--src/input/DespotifyInputPlugin.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/input/DespotifyInputPlugin.cxx b/src/input/DespotifyInputPlugin.cxx
index 669ebd036..1e5a8c606 100644
--- a/src/input/DespotifyInputPlugin.cxx
+++ b/src/input/DespotifyInputPlugin.cxx
@@ -51,11 +51,10 @@ struct DespotifyInputStream {
Mutex &mutex, Cond &cond,
despotify_session *_session,
ds_track *_track)
- :session(_session), track(_track),
+ :base(input_plugin_despotify, uri, mutex, cond),
+ session(_session), track(_track),
tag(mpd_despotify_tag_from_track(track)),
len_available(0), eof(false) {
- input_stream_init(&base, &input_plugin_despotify, uri,
- mutex, cond);
memset(&pcm, 0, sizeof(pcm));
@@ -69,7 +68,6 @@ struct DespotifyInputStream {
tag_free(tag);
despotify_free_track(track);
- input_stream_deinit(&base);
}
};