1
0
Fork 0
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:
winlin 2017-03-18 21:41:01 +08:00
parent da4c390d69
commit 8d679a6f9a
5 changed files with 44 additions and 60 deletions

View file

@ -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();