Fix HLS no PMT/PAT bug.
This commit is contained in:
parent
1d3afa5ab9
commit
ffe391aa49
|
|
@ -462,6 +462,9 @@ srs_error_t SrsHlsMuxer::segment_open()
|
|||
if ((err = current->writer->open(tmp_file)) != srs_success) {
|
||||
return srs_error_wrap(err, "open hls muxer");
|
||||
}
|
||||
|
||||
// reset the context for a new ts start.
|
||||
context->reset();
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -157,7 +157,8 @@ private:
|
|||
// The key and iv.
|
||||
unsigned char key[16];
|
||||
unsigned char iv[16];
|
||||
SrsFileWriter *writer;
|
||||
// The underlayer file writer.
|
||||
SrsFileWriter* writer;
|
||||
private:
|
||||
int _sequence_no;
|
||||
srs_utime_t max_td;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user