diff --git a/trunk/src/app/srs_app_hls.cpp b/trunk/src/app/srs_app_hls.cpp index 240ada91c..bbc62cd95 100644 --- a/trunk/src/app/srs_app_hls.cpp +++ b/trunk/src/app/srs_app_hls.cpp @@ -243,7 +243,7 @@ int SrsDvrAsyncCallOnHlsNotify::call() for (int i = 0; i < (int)on_hls->args.size(); i++) { std::string url = on_hls->args.at(i); if ((ret = SrsHttpHooks::on_hls_notify(url, req, ts_url)) != ERROR_SUCCESS) { - srs_error("hook client on_hls_notify failed. url=%s, ret=%d", url.c_str(), ret); + srs_error("hook client on_hls_notify failed. url=%s, ts=%s, ret=%d", url.c_str(), ts_url.c_str(), ret); return ret; } } diff --git a/trunk/src/app/srs_app_http_hooks.cpp b/trunk/src/app/srs_app_http_hooks.cpp index e4bb70461..cc814d4b7 100644 --- a/trunk/src/app/srs_app_http_hooks.cpp +++ b/trunk/src/app/srs_app_http_hooks.cpp @@ -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",