[Live-devel] ProxyServerMediaSession not working correctly for more than one client per stream

Ross Finlayson finlayson at live555.com
Wed May 29 11:48:44 PDT 2013


> I am using ‘ProxyServerMediaSession’ for one of our projects, where we stream in from multiple cameras and stream out again. I am facing an issue where there are two clients connected and receiving one of the streams. But when one of the clients goes away or terminates its connection with the server, the live555 appears to disconnect the other client as well.

I don't see how this can be happening, because the 'reference count' on the "StreamState" object (in the implementation of "OnDemandServerMediaSubsession") is supposed to take care of this.  (Because proxied streams have "reuseFirstSource" set to True, the same 
"StreamState" object gets used, regardless of how many front-end clients are accessing the proxied stream.  But when each client closes its stream, the "StreamState" object doesn't get closed down unless there are no more clients remaining (see the function "OnDemandServerMediaSubsession::deleteStream()").

This is assuming, of course, that you haven't modified the code at all.  If you have modified the code, then all bets are off...

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/20130529/e0f4a455/attachment.html>


More information about the live-devel mailing list