Skip to content

Commit 7e4fcdd

Browse files
committed
Merge branch 'mcn' of git://github.com/JonnyJD/image-id
Conflicts: image_id.c
2 parents 05c5ced + 0d184ec commit 7e4fcdd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

image_id.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ static bool process_disc(MirageDisc *disc, DiscId *discid) {
9494
int first, last;
9595
int offsets[100] = {0};
9696
char isrcs[100][MIRAGE_ISRC_SIZE+1] = {{0}};
97+
char mcn[13+1] = "\0";
98+
99+
if (mirage_disc_get_mcn(disc) != NULL) {
100+
strncpy(mcn, mirage_disc_get_mcn(disc), sizeof mcn);
101+
}
97102

98103
sessions = mirage_disc_get_number_of_sessions(disc);
99104
fprintf(stderr, "Disc contains %d sessions\n", sessions);
@@ -207,6 +212,9 @@ static bool process_disc(MirageDisc *disc, DiscId *discid) {
207212
printf("ISRC Track %d: %s\n", i, isrcs[i]);
208213
}
209214
}
215+
if (strlen(mcn) > 0) {
216+
printf("MCN: %s\n", mcn);
217+
}
210218

211219
return true;
212220
}

0 commit comments

Comments
 (0)