[Live-devel] HLSProxy

Ross Finlayson finlayson at live555.com
Tue Aug 10 13:23:34 PDT 2021


“live555HLSProxy” is intended to be run as an application - i.e., in its own process - so that when the application (process) ends, any extra memory that it has allocated is automatically freed.  Is there any reason why you have to embed this code in some other (longer-lasting) application?  I.e., why not continue to run it as its own process?


> If I use 'live555HLSProxy.cpp' source code, I can free memory with code:
[…]
But if you insist on embedding the “live555HLSProxy.cpp” code in your own application, then the code that you describe here will probably work.


> When is it correct to call Medium::close(transportStream)?

Anytime after it the stream no longer being read.  I.e., you could do this in the “afterPlaying()” function (which you have presumably already modified to comment out the call to “exit(0);” :-)

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




More information about the live-devel mailing list