mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the hls_on_notify, only read a chunk.
This commit is contained in:
parent
e3c6e52547
commit
e6d6bdfe57
2 changed files with 4 additions and 4 deletions
|
@ -361,9 +361,9 @@ int SrsHttpHooks::on_hls_notify(std::string url, SrsRequest* req, std::string ts
|
|||
ISrsHttpResponseReader* br = msg->body_reader();
|
||||
while (!br->eof()) {
|
||||
std::string data;
|
||||
if ((ret = br->read(data)) != ERROR_SUCCESS) {
|
||||
break;
|
||||
}
|
||||
// for notify, only read some data.
|
||||
ret = br->read(data);
|
||||
break;
|
||||
}
|
||||
|
||||
srs_trace("http hook on_hls_notify success. client_id=%d, url=%s, code=%d, ret=%d",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue