Skip to content

Commit

Permalink
fix dash publish error
Browse files Browse the repository at this point in the history
Cause: dash auto dispose is configured by seconds, but the code compare
by usecond, 1 second = 1,000,000 useconds
  • Loading branch information
suzp1984 committed Jul 10, 2024
1 parent f1d98b9 commit 24a50e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trunk/src/app/srs_app_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6871,7 +6871,7 @@ srs_utime_t SrsConfig::get_dash_dispose(std::string vhost)
{
SRS_OVERWRITE_BY_ENV_SECONDS("srs.vhost.dash.dash_dispose"); // SRS_VHOST_DASH_DASH_DISPOSE

static srs_utime_t DEFAULT = 120;
static srs_utime_t DEFAULT = 120 * SRS_UTIME_SECONDS;

SrsConfDirective* conf = get_dash(vhost);
if (!conf) {
Expand Down

0 comments on commit 24a50e6

Please sign in to comment.