diff --git a/BililiveRecorder.FlvProcessor/FlvStreamProcessor.cs b/BililiveRecorder.FlvProcessor/FlvStreamProcessor.cs index 7822c32..3174846 100644 --- a/BililiveRecorder.FlvProcessor/FlvStreamProcessor.cs +++ b/BililiveRecorder.FlvProcessor/FlvStreamProcessor.cs @@ -362,7 +362,7 @@ namespace BililiveRecorder.FlvProcessor { try { - logger.Debug("正在关闭当前录制文件: " + _targetFile.Name); + logger.Debug("正在关闭当前录制文件: " + _targetFile?.Name); Metadata["duration"] = CurrentMaxTimestamp / 1000.0; Metadata["lasttimestamp"] = (double)CurrentMaxTimestamp; byte[] metadata = Metadata.ToBytes();