mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
use system utilities
This commit is contained in:
parent
908365a61a
commit
69cc01b696
2 changed files with 2 additions and 2 deletions
|
@ -410,7 +410,7 @@ string SrsFlvSegment::generate_path()
|
|||
std::string path_config = _srs_config->get_dvr_path(req->vhost);
|
||||
|
||||
// add [stream].[timestamp].flv as filename for dir
|
||||
if (path_config.find(".flv") != path_config.length() - 4) {
|
||||
if (!srs_string_ends_with(path_config, ".flv")) {
|
||||
path_config += "/[stream].[timestamp].flv";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue