aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-05-12 18:48:16 +0200
committerMax Kellermann <max@duempel.org>2014-05-12 18:48:16 +0200
commit4bbd4ba855ba343fb76c8d265e3de609bb872438 (patch)
treedd5ae70170dd25b2218e8c7b3b37411b40e1733c
parent9e5b56b4758691fb14ba1fb63f78fc5a80bbdf6a (diff)
downloadmpd-4bbd4ba855ba343fb76c8d265e3de609bb872438.tar.gz
mpd-4bbd4ba855ba343fb76c8d265e3de609bb872438.tar.xz
mpd-4bbd4ba855ba343fb76c8d265e3de609bb872438.zip
input/cdio: initialize lsn_relofs in constructor
Diffstat (limited to '')
-rw-r--r--src/input/plugins/CdioParanoiaInputPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input/plugins/CdioParanoiaInputPlugin.cxx b/src/input/plugins/CdioParanoiaInputPlugin.cxx
index 842aecdd1..19fd33913 100644
--- a/src/input/plugins/CdioParanoiaInputPlugin.cxx
+++ b/src/input/plugins/CdioParanoiaInputPlugin.cxx
@@ -64,6 +64,7 @@ struct CdioParanoiaInputStream final : public InputStream {
CdioParanoiaInputStream(const char *_uri, Mutex &_mutex, Cond &_cond)
:InputStream(_uri, _mutex, _cond),
drv(nullptr), cdio(nullptr), para(nullptr),
+ lsn_relofs(0),
buffer_lsn(-1)
{
}
@@ -237,8 +238,6 @@ input_cdio_open(const char *uri,
return nullptr;
}
- i->lsn_relofs = 0;
-
if (parsed_uri.track >= 0) {
i->lsn_from = cdio_get_track_lsn(i->cdio, parsed_uri.track);
i->lsn_to = cdio_get_track_last_lsn(i->cdio, parsed_uri.track);