From 982e9555bda09fa8a7b39388206e1024abbe0c6f Mon Sep 17 00:00:00 2001 From: winlin Date: Thu, 8 Jan 2015 17:48:45 +0800 Subject: [PATCH] merge from feilong, fix hls msg memory leak bug. --- trunk/src/app/srs_app_source.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/app/srs_app_source.cpp b/trunk/src/app/srs_app_source.cpp index ed2ce0a2e..53e6f1114 100644 --- a/trunk/src/app/srs_app_source.cpp +++ b/trunk/src/app/srs_app_source.cpp @@ -1239,7 +1239,7 @@ int SrsSource::on_audio(SrsCommonMessage* __audio) srs_verbose("initialize shared ptr audio success."); #ifdef SRS_AUTO_HLS - if ((ret = hls->on_audio(msg.copy())) != ERROR_SUCCESS) { + if ((ret = hls->on_audio(&msg)) != ERROR_SUCCESS) { // apply the error strategy for hls. // @see https://github.com/winlinvip/simple-rtmp-server/issues/264 std::string hls_error_strategy = _srs_config->get_hls_on_error(_req->vhost); @@ -1366,7 +1366,7 @@ int SrsSource::on_video(SrsCommonMessage* __video) srs_verbose("initialize shared ptr video success."); #ifdef SRS_AUTO_HLS - if ((ret = hls->on_video(msg.copy())) != ERROR_SUCCESS) { + if ((ret = hls->on_video(&msg)) != ERROR_SUCCESS) { // apply the error strategy for hls. // @see https://github.com/winlinvip/simple-rtmp-server/issues/264 std::string hls_error_strategy = _srs_config->get_hls_on_error(_req->vhost);