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"); }