Skip to content

Commit 8c339fd

Browse files
zoltanvbwarmenhoven
authored andcommitted
Do not use size hint for CHD for now.
1 parent 931e3fc commit 8c339fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/task_database.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ static int task_database_chd_get_serial(const char *name, char *serial, size_t l
395395
if (!fd)
396396
return 0;
397397

398-
*filesize = intfstream_get_size(fd);
398+
*filesize = intfstream_get_size(fd); /* TODO: get the full CHD size instead */
399399
result = intfstream_get_serial(fd, serial, len, name);
400400
intfstream_close(fd);
401401
free(fd);
@@ -682,7 +682,7 @@ static int task_database_iterate_playlist(
682682
case FILE_TYPE_CHD:
683683
db_state->serial[0] = '\0';
684684
if (task_database_chd_get_serial(name, db_state->serial, sizeof(db_state->serial),&db_state->size))
685-
db->type = DATABASE_TYPE_SERIAL_LOOKUP_SIZEHINT;
685+
db->type = DATABASE_TYPE_SERIAL_LOOKUP;
686686
else
687687
{
688688
db->type = DATABASE_TYPE_CRC_LOOKUP;

0 commit comments

Comments
 (0)