From 72dfdf00a5cac980e3c032aae6c54af4eb67c79e Mon Sep 17 00:00:00 2001 From: Grigory Chudov Date: Wed, 17 Apr 2013 22:17:11 -0400 Subject: [PATCH] CUERipper: Test & Copy was failing when gap detection was failing CUERipper: Log was cached when ripping the same CD several times --- CUETools.Processor/CUESheet.cs | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/CUETools.Processor/CUESheet.cs b/CUETools.Processor/CUESheet.cs index 78ca84d..4c360f6 100644 --- a/CUETools.Processor/CUESheet.cs +++ b/CUETools.Processor/CUESheet.cs @@ -2261,22 +2261,14 @@ namespace CUETools.Processor return errCount > 0; } - public void CreateExactAudioCopyLOG() - { - _ripperLog = CUESheetLogWriter.GetExactAudioCopyLog(this); - } - public void CreateRipperLOG() { - if (!_isCD || _ripper == null || _ripperLog != null) + if (!_isCD || _ripper == null) return; - if (_config.createEACLOG) - { - CreateExactAudioCopyLOG(); - return; - } - _ripperLog = CUESheetLogWriter.GetRipperLog(this); + _ripperLog = _config.createEACLOG ? + CUESheetLogWriter.GetExactAudioCopyLog(this) : + CUESheetLogWriter.GetRipperLog(this); } public string GetM3UContents(CUEStyle style) @@ -2512,7 +2504,7 @@ namespace CUETools.Processor if (!_isCD) throw new Exception("Not a cd"); - _ripper.DetectGaps(); + this.DetectGaps(); _arTestVerify = new AccurateRipVerify(_toc, proxy); var buff = new AudioBuffer(AudioPCMConfig.RedBook, 0x10000);