From 9d853897cd9081445a0edec92ceaf508c5782886 Mon Sep 17 00:00:00 2001 From: lazypingu <126294998+lazypingu@users.noreply.github.com> Date: Mon, 26 Feb 2024 10:34:37 +0100 Subject: [PATCH] Use track and disc functions from libcdio-paranoia to enable playback of hidden tracks and audio tracks on multisession CDs --- src/input/plugins/CdioParanoiaInputPlugin.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/input/plugins/CdioParanoiaInputPlugin.cxx b/src/input/plugins/CdioParanoiaInputPlugin.cxx index a5b193454..56de50808 100644 --- a/src/input/plugins/CdioParanoiaInputPlugin.cxx +++ b/src/input/plugins/CdioParanoiaInputPlugin.cxx @@ -257,11 +257,11 @@ input_cdio_open(const char *uri, lsn_t lsn_from, lsn_to; if (parsed_uri.track >= 0) { - lsn_from = cdio_get_track_lsn(cdio, parsed_uri.track); - lsn_to = cdio_get_track_last_lsn(cdio, parsed_uri.track); + lsn_from = cdio_cddap_track_firstsector(drv, parsed_uri.track); + lsn_to = cdio_cddap_track_lastsector(drv, parsed_uri.track); } else { - lsn_from = 0; - lsn_to = cdio_get_disc_last_lsn(cdio); + lsn_from = cdio_cddap_disc_firstsector(drv); + lsn_to = cdio_cddap_disc_lastsector(drv); } return std::make_unique(uri, mutex,