Skip to content

Commit

Permalink
Fix basic disc info output.
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Oct 15, 2018
1 parent 210b2c1 commit b550b71
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/output_human.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ void print_human_readable(struct bd_info *bd_info)
{
if (bd_info->generic->disc_id[0] == 0)
{
printf("Disc Title: Unknown");
printf("Disc ID: Unknown");
}
else
{
printf("Disc Title: %s", bd_info->generic->disc_id);
printf("Disc ID: ");
for (int i = 0; i < sizeof(bd_info->generic->disc_id); i++) {
printf("%02X", bd_info->generic->disc_id[i]);
}
}

if (bd_info->generic->aacs_detected == 1)
{
printf(", AACS: MKVv%i", bd_info->generic->aacs_mkbv);
printf(", AACS: MKBv%i", bd_info->generic->aacs_mkbv);
}
else
{
Expand Down

0 comments on commit b550b71

Please sign in to comment.