Prevent empty ISRC from being added to CDRWin and CDRDAO images

Don't write ISRC to CDRDAO or CDRWin images if they're null or white space.
This commit is contained in:
SilasLaspada
2020-08-04 14:55:24 -06:00
parent 011ec1e32c
commit 80ad486189
2 changed files with 2 additions and 2 deletions

View File

@@ -513,7 +513,7 @@ namespace Aaru.DiscImages
flags.HasFlag(CdFlags.PreEmphasis) ? " PRE" : "");
}
if(_trackIsrcs.TryGetValue((byte)track.TrackSequence, out string isrc))
if(_trackIsrcs.TryGetValue((byte)track.TrackSequence, out string isrc)) && !string.IsNullOrWhiteSpace(isrc))
_descriptorStream.WriteLine(" ISRC {0}", isrc);
if(track.TrackPregap > 0)