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

For #299, increase dash segment size for avsync issue. 3.0.89

This commit is contained in:
winlin 2019-12-29 18:21:45 +08:00
parent d11a7b2e00
commit 8a28a11648
7 changed files with 101 additions and 67 deletions

View file

@ -363,7 +363,18 @@ void SrsDashController::on_unpublish()
{
mpd->on_unpublish();
srs_error_t err = srs_success;
if ((err = vcurrent->reap(video_dts)) != srs_success) {
srs_warn("reap video err %s", srs_error_desc(err).c_str());
srs_freep(err);
}
srs_freep(vcurrent);
if ((err = acurrent->reap(audio_dts)) != srs_success) {
srs_warn("reap audio err %s", srs_error_desc(err).c_str());
srs_freep(err);
}
srs_freep(acurrent);
}