AI automatically translates all comments in the code into English (#3917)

This commit is contained in:
alex
2024-09-19 14:53:50 +08:00
committed by GitHub
parent 046de691cb
commit 4152dcd409
279 changed files with 10602 additions and 3038 deletions

View File

@@ -39,10 +39,12 @@ bool HlsParser::parse(const string &http_url, const string &m3u8) {
segment.duration = extinf_dur;
segment.url = Parser::mergeUrl(http_url, line);
if (!_is_m3u8_inner) {
//ts按照先后顺序排序
// ts按照先后顺序排序 [AUTO-TRANSLATED:c34f8c9d]
// Sort by order of appearance
ts_map.emplace(index++, segment);
} else {
//子m3u8按照带宽排序
// 子m3u8按照带宽排序 [AUTO-TRANSLATED:749cb42b]
// Sort sub m3u8 by bandwidth
ts_map.emplace(segment.bandwidth, segment);
}
extinf_dur = 0;
@@ -91,7 +93,8 @@ bool HlsParser::parse(const string &http_url, const string &m3u8) {
}
if (line.find("#EXT-X-ENDLIST") == 0) {
//点播
// 点播 [AUTO-TRANSLATED:a64427bc]
// On-demand
_is_live = false;
continue;
}