play: do not print on watchdog thread

Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
This commit is contained in:
Mahyar Koshkouei
2025-08-01 00:00:25 +01:00
parent 183b05aa06
commit c5d2650ea7
3 changed files with 6 additions and 13 deletions

View File

@@ -46,7 +46,7 @@ enum file_types getFileType(const char *file)
/* Failure opening file */
if(ftest == NULL)
return -1;
return FILE_TYPE_ERROR;
if(fread(&fileSig, 4, 1, ftest) == 0)
goto err;
@@ -87,7 +87,7 @@ enum file_types getFileType(const char *file)
// "PSID" or "RSID"
case 0x44495350:
case 0x44495352:
file_type=FILE_TYPE_SID;
file_type = FILE_TYPE_SID;
break;
default: