mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
refine the hls dispose, when not cycle always dispose it.
This commit is contained in:
parent
ec90ae2082
commit
17c276113e
2 changed files with 2 additions and 10 deletions
|
@ -1164,14 +1164,6 @@ void SrsHls::dispose()
|
||||||
on_unpublish();
|
on_unpublish();
|
||||||
}
|
}
|
||||||
|
|
||||||
// only dispose hls when positive.
|
|
||||||
if (_req) {
|
|
||||||
int hls_dispose = _srs_config->get_hls_dispose(_req->vhost);
|
|
||||||
if (hls_dispose <= 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
muxer->dispose();
|
muxer->dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1472,7 +1472,7 @@ int SrsSource::on_audio(SrsCommonMessage* shared_audio)
|
||||||
if (!mix_correct && is_monotonically_increase) {
|
if (!mix_correct && is_monotonically_increase) {
|
||||||
if (last_packet_time > 0 && shared_audio->header.timestamp < last_packet_time) {
|
if (last_packet_time > 0 && shared_audio->header.timestamp < last_packet_time) {
|
||||||
is_monotonically_increase = false;
|
is_monotonically_increase = false;
|
||||||
srs_warn("stream not monotonically increase, please open mix_correct.");
|
srs_warn("AUTIO: stream not monotonically increase, please open mix_correct.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
last_packet_time = shared_audio->header.timestamp;
|
last_packet_time = shared_audio->header.timestamp;
|
||||||
|
@ -1663,7 +1663,7 @@ int SrsSource::on_video(SrsCommonMessage* shared_video)
|
||||||
if (!mix_correct && is_monotonically_increase) {
|
if (!mix_correct && is_monotonically_increase) {
|
||||||
if (last_packet_time > 0 && shared_video->header.timestamp < last_packet_time) {
|
if (last_packet_time > 0 && shared_video->header.timestamp < last_packet_time) {
|
||||||
is_monotonically_increase = false;
|
is_monotonically_increase = false;
|
||||||
srs_warn("stream not monotonically increase, please open mix_correct.");
|
srs_warn("VIDEO: stream not monotonically increase, please open mix_correct.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
last_packet_time = shared_video->header.timestamp;
|
last_packet_time = shared_video->header.timestamp;
|
||||||
|
|
Loading…
Reference in a new issue