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

dvr support segment plan

This commit is contained in:
winlin 2014-04-17 18:13:59 +08:00
parent 2d1c28cff9
commit ab9a2ddd6c
3 changed files with 113 additions and 86 deletions

View file

@ -1297,6 +1297,9 @@ int SrsHls::on_publish(SrsRequest* req)
return ret;
}
// if enabled, open the muxer.
hls_enabled = true;
// notice the source to get the cached sequence header.
// when reload to start hls, hls will never get the sequence header in stream,
// use the SrsSource.on_hls_start to push the sequence header to HLS.
@ -1304,9 +1307,6 @@ int SrsHls::on_publish(SrsRequest* req)
srs_error("callback source hls start failed. ret=%d", ret);
return ret;
}
// if enabled, open the muxer.
hls_enabled = true;
return ret;
}