diff --git a/src/connectors/conn_http_progressive_mp4.cpp b/src/connectors/conn_http_progressive_mp4.cpp index 7a5060cb..abeb0328 100644 --- a/src/connectors/conn_http_progressive_mp4.cpp +++ b/src/connectors/conn_http_progressive_mp4.cpp @@ -172,6 +172,8 @@ namespace Connector_HTTP { cmd << "\ns " << (*keyPartIt).time; cmd << "\no\n"; ss.SendNow(cmd.str()); + }else{//if keyparts.end, then we reached the end of the file + conn.close(); } }else if(Strm.lastType() == DTSC::AUDIO || Strm.lastType() == DTSC::VIDEO){ //parse DTSC to MP4 here