[Live-devel] Crash for Http live Streaming

daniel dw at norpix.com
Fri Jun 15 12:06:29 PDT 2012


Hello,

 

It works now but  "delete clientSession" never called.

 

it's destoryed in the function:

 

RTSPServer::RTSPClientSession::handleRequestBytes(int newBytesRead)

{

            .

            if (fRecursionCount > 0) closeSockets(); else delete this;

}

 

Thanks.

 

Best regards,

 

Daniel wang

Software Developer

Norpix Inc.

 

From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Friday, June 15, 2012 2:33 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Crash for Http live Streaming

 

Daniel,

 

I think I have a solution.

 

At the end of "RTSPServerSupportingHTTPStreaming.cpp", in the
"afterStreaming()" function, replace the statement

 

            delete clientSession;

 

with:

 

            if (clientSession->fRecursionCount > 0) {

                        clientSession->fSessionIsActive = False;

            } else {

                        delete clientSession;

            }

 

Please let us know if this now works OK for you.  (If so, I'll include it in
the next release of the software.)

 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/ 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120615/3ca08e7f/attachment.html>


More information about the live-devel mailing list