Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
d62426f1
Commit
d62426f1
authored
Jul 08, 2022
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input/CdioParanoia: eliminate redundant field "lsn_to"
Use "size" instead.
parent
1714cf34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CdioParanoiaInputPlugin.cxx
src/input/plugins/CdioParanoiaInputPlugin.cxx
+4
-4
No files found.
src/input/plugins/CdioParanoiaInputPlugin.cxx
View file @
d62426f1
...
...
@@ -50,7 +50,7 @@ class CdioParanoiaInputStream final : public InputStream {
CdIo_t
*
const
cdio
;
CdromParanoia
para
;
const
lsn_t
lsn_from
,
lsn_to
;
const
lsn_t
lsn_from
;
int
lsn_relofs
;
char
buffer
[
CDIO_CD_FRAMESIZE_RAW
];
...
...
@@ -60,10 +60,10 @@ class CdioParanoiaInputStream final : public InputStream {
CdioParanoiaInputStream
(
const
char
*
_uri
,
Mutex
&
_mutex
,
cdrom_drive_t
*
_drv
,
CdIo_t
*
_cdio
,
bool
reverse_endian
,
lsn_t
_lsn_from
,
lsn_t
_
lsn_to
)
lsn_t
_lsn_from
,
lsn_t
lsn_to
)
:
InputStream
(
_uri
,
_mutex
),
drv
(
_drv
),
cdio
(
_cdio
),
para
(
drv
),
lsn_from
(
_lsn_from
),
lsn_to
(
_lsn_to
),
lsn_from
(
_lsn_from
),
lsn_relofs
(
0
),
buffer_lsn
(
-
1
)
{
...
...
@@ -350,7 +350,7 @@ CdioParanoiaInputStream::Read(std::unique_lock<Mutex> &,
bool
CdioParanoiaInputStream
::
IsEOF
()
const
noexcept
{
return
lsn_from
+
lsn_relofs
>
lsn_to
;
return
offset
>=
size
;
}
static
constexpr
const
char
*
cdio_paranoia_prefixes
[]
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment