Add debug logging if setting speed failed
This commit is contained in:
parent
1a7278f1d3
commit
88c77f9c8a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue