mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #299, use fragment for dvr FLV/MP4
This commit is contained in:
parent
da4c390d69
commit
8d679a6f9a
5 changed files with 44 additions and 60 deletions
|
@ -423,12 +423,9 @@ int SrsHlsMuxer::segment_open()
|
|||
current->uri += ts_url;
|
||||
|
||||
// create dir recursively for hls.
|
||||
std::string ts_dir = srs_path_dirname(current->fullpath());
|
||||
if ((ret = srs_create_dir_recursively(ts_dir)) != ERROR_SUCCESS) {
|
||||
srs_error("create app dir %s failed. ret=%d", ts_dir.c_str(), ret);
|
||||
if ((ret = current->create_dir()) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
srs_info("create ts dir %s ok", ts_dir.c_str());
|
||||
|
||||
// open temp ts file.
|
||||
std::string tmp_file = current->tmppath();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue