1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix #366, config hls to disable cleanup of ts. 2.0.154.

This commit is contained in:
winlin 2015-04-02 11:52:03 +08:00
parent 717d088376
commit 8401d9ac06
7 changed files with 56 additions and 20 deletions

View file

@ -188,6 +188,7 @@ private:
std::string hls_entry_prefix;
std::string hls_path;
std::string hls_ts_file;
bool hls_cleanup;
std::string m3u8_dir;
double hls_aof_ratio;
double hls_fragment;
@ -245,7 +246,8 @@ public:
*/
virtual int update_config(SrsRequest* r, std::string entry_prefix,
std::string path, std::string m3u8_file, std::string ts_file,
double fragment, double window, bool ts_floor, double aof_ratio);
double fragment, double window, bool ts_floor, double aof_ratio,
bool cleanup);
/**
* open a new segment(a new ts file),
* @param segment_start_dts use to calc the segment duration,