1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-12 11:21:52 +00:00

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