aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-05-12 18:41:45 +0200
committerMax Kellermann <max@duempel.org>2014-05-12 18:41:45 +0200
commitdd383037fd20a5d36382086930a0026e4be32f89 (patch)
tree9d69d9388adf710ced071a1292ea9fa4bd69f472 /src/input
parent3cd24c0a5195fe2342bdf76845104a15c6a384d1 (diff)
downloadmpd-dd383037fd20a5d36382086930a0026e4be32f89.tar.gz
mpd-dd383037fd20a5d36382086930a0026e4be32f89.tar.xz
mpd-dd383037fd20a5d36382086930a0026e4be32f89.zip
input/cdio: remove unused attribute "trackno"
Diffstat (limited to '')
-rw-r--r--src/input/plugins/CdioParanoiaInputPlugin.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/input/plugins/CdioParanoiaInputPlugin.cxx b/src/input/plugins/CdioParanoiaInputPlugin.cxx
index 9b6f7437e..093cc99b2 100644
--- a/src/input/plugins/CdioParanoiaInputPlugin.cxx
+++ b/src/input/plugins/CdioParanoiaInputPlugin.cxx
@@ -58,16 +58,12 @@ struct CdioParanoiaInputStream final : public InputStream {
lsn_t lsn_from, lsn_to;
int lsn_relofs;
- int trackno;
-
char buffer[CDIO_CD_FRAMESIZE_RAW];
int buffer_lsn;
- CdioParanoiaInputStream(const char *_uri, Mutex &_mutex, Cond &_cond,
- int _trackno)
+ CdioParanoiaInputStream(const char *_uri, Mutex &_mutex, Cond &_cond)
:InputStream(_uri, _mutex, _cond),
- drv(nullptr), cdio(nullptr), para(nullptr),
- trackno(_trackno)
+ drv(nullptr), cdio(nullptr), para(nullptr)
{
}
@@ -184,8 +180,7 @@ input_cdio_open(const char *uri,
return nullptr;
CdioParanoiaInputStream *i =
- new CdioParanoiaInputStream(uri, mutex, cond,
- parsed_uri.track);
+ new CdioParanoiaInputStream(uri, mutex, cond);
/* get list of CD's supporting CD-DA */
const AllocatedPath device = parsed_uri.device[0] != 0
@@ -243,9 +238,9 @@ input_cdio_open(const char *uri,
i->lsn_relofs = 0;
- if (i->trackno >= 0) {
- i->lsn_from = cdio_get_track_lsn(i->cdio, i->trackno);
- i->lsn_to = cdio_get_track_last_lsn(i->cdio, i->trackno);
+ 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);
} else {
i->lsn_from = 0;
i->lsn_to = cdio_get_disc_last_lsn(i->cdio);