Fixed a wrong assumption about track.mode

This commit is contained in:
Thomas Schmitt 2012-01-01 12:44:25 +00:00
parent abf0d38c00
commit b0b98b97f6
2 changed files with 5 additions and 4 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2012.01.01.124330" #define Cdrskin_timestamP "2012.01.01.124424"

View File

@ -2971,11 +2971,12 @@ int burn_disc_get_write_mode_demands(struct burn_disc *disc,
last_track_is_unknown = 1; last_track_is_unknown = 1;
} else } else
last_track_is_unknown = 0; last_track_is_unknown = 0;
if (mode != track->mode) if ((mode & BURN_MODE_BITS) !=
(track->mode & BURN_MODE_BITS))
result->mixed_mode = 1; result->mixed_mode = 1;
if (track->mode == BURN_MODE1) { if (track->mode & BURN_MODE1) {
result->block_types |= BURN_BLOCK_MODE1; result->block_types |= BURN_BLOCK_MODE1;
} else if (track->mode == BURN_AUDIO) { } else if (track->mode & BURN_AUDIO) {
result->audio = 1; result->audio = 1;
result->block_types |= BURN_BLOCK_RAW0; result->block_types |= BURN_BLOCK_RAW0;
result->exotic_track = 1; result->exotic_track = 1;