fix fs not close,when dvr error (#1672)

This commit is contained in:
xfalcon 2020-03-30 10:37:16 +08:00 committed by GitHub
parent 80f315f1ae
commit cd1513d6a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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