input/cdio: initialize lsn_relofs in constructor
This commit is contained in:
parent
9e5b56b475
commit
4bbd4ba855
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user