winlin

update comments for HLS on_hls_start

@@ -1295,6 +1295,8 @@ int SrsHls::on_publish(SrsRequest* req) @@ -1295,6 +1295,8 @@ int SrsHls::on_publish(SrsRequest* req)
1295 } 1295 }
1296 1296
1297 // notice the source to get the cached sequence header. 1297 // notice the source to get the cached sequence header.
  1298 + // when reload to start hls, hls will never get the sequence header in stream,
  1299 + // use the SrsSource.on_hls_start to push the sequence header to HLS.
1298 if ((ret = source->on_hls_start()) != ERROR_SUCCESS) { 1300 if ((ret = source->on_hls_start()) != ERROR_SUCCESS) {
1299 srs_error("callback source hls start failed. ret=%d", ret); 1301 srs_error("callback source hls start failed. ret=%d", ret);
1300 return ret; 1302 return ret;
@@ -653,7 +653,8 @@ int SrsSource::on_hls_start() @@ -653,7 +653,8 @@ int SrsSource::on_hls_start()
653 #ifdef SRS_AUTO_HLS 653 #ifdef SRS_AUTO_HLS
654 654
655 // feed the hls the metadata/sequence header, 655 // feed the hls the metadata/sequence header,
656 - // when reload to enable the hls. 656 + // when reload to start hls, hls will never get the sequence header in stream,
  657 + // use the SrsSource.on_hls_start to push the sequence header to HLS.
657 // TODO: maybe need to decode the metadata? 658 // TODO: maybe need to decode the metadata?
658 if (cache_sh_video && (ret = hls->on_video(cache_sh_video->copy())) != ERROR_SUCCESS) { 659 if (cache_sh_video && (ret = hls->on_video(cache_sh_video->copy())) != ERROR_SUCCESS) {
659 srs_error("hls process video sequence header message failed. ret=%d", ret); 660 srs_error("hls process video sequence header message failed. ret=%d", ret);