Properly handle incomplete audio read

DiskReader::[do]refill() returns either 0, or -1 on error.
This commit is contained in:
Robin Gareus 2025-06-04 17:58:32 +02:00
parent 06593d1a79
commit f40b64b0d5
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -296,7 +296,7 @@ Butler::thread_work ()
case 0:
//DEBUG_TRACE (DEBUG::Butler, string_compose ("\ttrack refill done %1\n", tr->name()));
break;
case 1:
case -1:
DEBUG_TRACE (DEBUG::Butler, string_compose ("\ttrack refill unfinished %1\n", tr->name ()));
disk_work_outstanding = true;
break;