Commit 4bbd4ba8 authored by Max Kellermann's avatar Max Kellermann

input/cdio: initialize lsn_relofs in constructor

parent 9e5b56b4
...@@ -64,6 +64,7 @@ struct CdioParanoiaInputStream final : public InputStream { ...@@ -64,6 +64,7 @@ struct CdioParanoiaInputStream final : public InputStream {
CdioParanoiaInputStream(const char *_uri, Mutex &_mutex, Cond &_cond) CdioParanoiaInputStream(const char *_uri, Mutex &_mutex, Cond &_cond)
:InputStream(_uri, _mutex, _cond), :InputStream(_uri, _mutex, _cond),
drv(nullptr), cdio(nullptr), para(nullptr), drv(nullptr), cdio(nullptr), para(nullptr),
lsn_relofs(0),
buffer_lsn(-1) buffer_lsn(-1)
{ {
} }
...@@ -237,8 +238,6 @@ input_cdio_open(const char *uri, ...@@ -237,8 +238,6 @@ input_cdio_open(const char *uri,
return nullptr; return nullptr;
} }
i->lsn_relofs = 0;
if (parsed_uri.track >= 0) { if (parsed_uri.track >= 0) {
i->lsn_from = cdio_get_track_lsn(i->cdio, parsed_uri.track); 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); i->lsn_to = cdio_get_track_last_lsn(i->cdio, parsed_uri.track);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment