input/cdio: initialize lsn_relofs in constructor

This commit is contained in:
Max Kellermann 2014-05-12 18:48:16 +02:00
parent 9e5b56b475
commit 4bbd4ba855
1 changed files with 1 additions and 2 deletions

View File

@ -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);