winlin

support hls callback with duration.

@@ -582,7 +582,7 @@ int SrsHlsMuxer::segment_close(string log_desc) @@ -582,7 +582,7 @@ int SrsHlsMuxer::segment_close(string log_desc)
582 } 582 }
583 583
584 // use async to call the http hooks, for it will cause thread switch. 584 // use async to call the http hooks, for it will cause thread switch.
585 - if ((ret = async->call(new SrsDvrAsyncCallOnHls(req, current->full_path, current->sequence_no))) != ERROR_SUCCESS) { 585 + if ((ret = async->call(new SrsDvrAsyncCallOnHls(req, current->full_path, current->sequence_no, current->duration))) != ERROR_SUCCESS) {
586 return ret; 586 return ret;
587 } 587 }
588 588