diff --git a/CHANGELOG.md b/CHANGELOG.md index 3042290..7fdd457 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # 更新日志 +## 1.0.3 + +- 修复 bug + ## 1.0.2 - 修复版本号没有更新~ diff --git a/src/blrec/__init__.py b/src/blrec/__init__.py index fb7332a..3b42ed4 100644 --- a/src/blrec/__init__.py +++ b/src/blrec/__init__.py @@ -1,3 +1,3 @@ -__version__ = '1.0.2' +__version__ = '1.0.3' __prog__ = 'blrec' diff --git a/src/blrec/flv/stream_processor.py b/src/blrec/flv/stream_processor.py index d9fc62f..27e8395 100644 --- a/src/blrec/flv/stream_processor.py +++ b/src/blrec/flv/stream_processor.py @@ -179,7 +179,12 @@ class StreamProcessor: def _discard_file(self) -> None: curr_path = self._file_manager.curr_path + self._file_manager.close_file() + + if self._analyse_data: + self._data_analyser.reset() + logger.debug(f'discard file: {curr_path}') def _reset(self) -> None: