mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the on_hls.ts_url bug.
This commit is contained in:
parent
34d1ce9922
commit
2830ee12c1
7 changed files with 60 additions and 3 deletions
|
@ -459,7 +459,7 @@ int SrsIngestSrsInput::parseM3u8(SrsHttpUri* url, double& td, double& duration)
|
|||
std::string m3u8_url = body.substr(0, pos);
|
||||
body = body.substr(pos + 1);
|
||||
|
||||
if (!srs_string_starts_with(m3u8_url, "http://")) {
|
||||
if (!srs_string_is_http(m3u8_url)) {
|
||||
m3u8_url = srs_path_dirname(url->get_url()) + "/" + m3u8_url;
|
||||
}
|
||||
srs_trace("parse sub m3u8, url=%s", m3u8_url.c_str());
|
||||
|
@ -593,7 +593,7 @@ int SrsIngestSrsInput::SrsTsPiece::fetch(string m3u8)
|
|||
SrsHttpClient client;
|
||||
|
||||
std::string ts_url = url;
|
||||
if (!srs_string_starts_with(ts_url, "http://")) {
|
||||
if (!srs_string_is_http(ts_url)) {
|
||||
ts_url = srs_path_dirname(m3u8) + "/" + url;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue