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:
parent
d11a7b2e00
commit
8a28a11648
7 changed files with 101 additions and 67 deletions
|
@ -5810,7 +5810,7 @@ bool SrsConfig::get_dash_enabled(string vhost)
|
|||
|
||||
srs_utime_t SrsConfig::get_dash_fragment(string vhost)
|
||||
{
|
||||
static int DEFAULT = 3 * SRS_UTIME_SECONDS;
|
||||
static int DEFAULT = 30 * SRS_UTIME_SECONDS;
|
||||
|
||||
SrsConfDirective* conf = get_dash(vhost);
|
||||
if (!conf) {
|
||||
|
@ -5827,7 +5827,7 @@ srs_utime_t SrsConfig::get_dash_fragment(string vhost)
|
|||
|
||||
srs_utime_t SrsConfig::get_dash_update_period(string vhost)
|
||||
{
|
||||
static srs_utime_t DEFAULT = 30 * SRS_UTIME_SECONDS;
|
||||
static srs_utime_t DEFAULT = 150 * SRS_UTIME_SECONDS;
|
||||
|
||||
SrsConfDirective* conf = get_dash(vhost);
|
||||
if (!conf) {
|
||||
|
@ -5844,7 +5844,7 @@ srs_utime_t SrsConfig::get_dash_update_period(string vhost)
|
|||
|
||||
srs_utime_t SrsConfig::get_dash_timeshift(string vhost)
|
||||
{
|
||||
static srs_utime_t DEFAULT = 60 * SRS_UTIME_SECONDS;
|
||||
static srs_utime_t DEFAULT = 300 * SRS_UTIME_SECONDS;
|
||||
|
||||
SrsConfDirective* conf = get_dash(vhost);
|
||||
if (!conf) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue