mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #2068, losing of last HLS ts file 4.0.133
fix bug: last segment of ts not trigger 'on_hls', because of 'on_unpublish' earlier than 'segment_close' (#2438)
This commit is contained in:
parent
aa12251084
commit
7bf03ef2ba
3 changed files with 6 additions and 5 deletions
|
@ -923,10 +923,6 @@ srs_error_t SrsHlsController::on_unpublish()
|
|||
{
|
||||
srs_error_t err = srs_success;
|
||||
|
||||
if ((err = muxer->on_unpublish()) != srs_success) {
|
||||
return srs_error_wrap(err, "muxer unpublish");
|
||||
}
|
||||
|
||||
if ((err = muxer->flush_audio(tsmc)) != srs_success) {
|
||||
return srs_error_wrap(err, "hls: flush audio");
|
||||
}
|
||||
|
@ -934,6 +930,10 @@ srs_error_t SrsHlsController::on_unpublish()
|
|||
if ((err = muxer->segment_close()) != srs_success) {
|
||||
return srs_error_wrap(err, "hls: segment close");
|
||||
}
|
||||
|
||||
if ((err = muxer->on_unpublish()) != srs_success) {
|
||||
return srs_error_wrap(err, "muxer unpublish");
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 4
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 132
|
||||
#define VERSION_REVISION 133
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue