Add debug logging if setting speed failed

This commit is contained in:
lazypingu 2024-02-26 10:30:43 +01:00
parent 1a7278f1d3
commit 88c77f9c8a
1 changed files with 4 additions and 1 deletions

View File

@ -224,7 +224,10 @@ input_cdio_open(const char *uri,
if (speed > 0) {
FmtDebug(cdio_domain, "Attempting to set CD speed to {}x",
speed);
cdio_cddap_speed_set(drv,speed);
/* Negative value indicate error (e.g. -405: not supported) */
if (cdio_cddap_speed_set(drv,speed) < 0)
FmtDebug(cdio_domain, "Failed to set CD speed to {}x",
speed);
}
bool reverse_endian;