From cd1513d6a30908f0c947843c34a896b310e8dcbe Mon Sep 17 00:00:00 2001 From: xfalcon Date: Mon, 30 Mar 2020 10:37:16 +0800 Subject: [PATCH] fix fs not close,when dvr error (#1672) --- trunk/src/app/srs_app_dvr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/trunk/src/app/srs_app_dvr.cpp b/trunk/src/app/srs_app_dvr.cpp index cb281e7bdf..48453091ac 100644 --- a/trunk/src/app/srs_app_dvr.cpp +++ b/trunk/src/app/srs_app_dvr.cpp @@ -180,6 +180,7 @@ srs_error_t SrsDvrSegmenter::close() // Close the encoder, then close the fs object. if ((err = close_encoder()) != srs_success) { + fs->close(); return srs_error_wrap(err, "close encoder"); }