1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

DASH: Fix dash crash bug when writing file. v5.0.108 (#3301)

Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
john 2022-12-13 00:42:46 +08:00 committed by GitHub
parent 61d3815fdf
commit d1bc155c8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -458,7 +458,7 @@ void SrsDashController::on_unpublish()
srs_freep(err);
}
if (acurrent->duration() > 0) {
if (acurrent && acurrent->duration() > 0) {
afragments->append(acurrent);
acurrent = NULL;
}

View file

@ -9,6 +9,6 @@
#define VERSION_MAJOR 5
#define VERSION_MINOR 0
#define VERSION_REVISION 107
#define VERSION_REVISION 108
#endif