Fixed ts_stream class, improved HLS input, added https support to HLS analyser
This commit is contained in:
parent
e3e5b39a62
commit
a7a09d22bd
5 changed files with 35 additions and 38 deletions
|
@ -302,7 +302,7 @@ namespace TS{
|
|||
}
|
||||
std::deque<Packet> &inStream = pesStreams[tid];
|
||||
if (inStream.size() <= 1){
|
||||
FAIL_MSG("No PES packets to parse");
|
||||
if (!finished){FAIL_MSG("No PES packets to parse");}
|
||||
return;
|
||||
}
|
||||
// Find number of packets before unit Start
|
||||
|
@ -842,11 +842,13 @@ namespace TS{
|
|||
void Stream::initializeMetadata(DTSC::Meta &meta, size_t tid, size_t mappingId){
|
||||
tthread::lock_guard<tthread::recursive_mutex> guard(tMutex);
|
||||
|
||||
size_t mId = mappingId;
|
||||
|
||||
for (std::map<size_t, uint32_t>::const_iterator it = pidToCodec.begin();
|
||||
it != pidToCodec.end(); it++){
|
||||
if (tid && it->first != tid){continue;}
|
||||
|
||||
size_t mId = it->first;
|
||||
if (mId == 0){mId = it->first;}
|
||||
|
||||
if (meta.tracks.count(mId) && meta.tracks[mId].codec.size()){continue;}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue