1
0
Fork 0
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:
winlin 2015-04-10 12:27:30 +08:00
parent e3c6e52547
commit e6d6bdfe57
2 changed files with 4 additions and 4 deletions

View file

@ -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",