[Live-devel] Undereferenced sessions
Vlad Seryakov
vlad at crystalballinc.com
Mon Apr 9 12:33:59 PDT 2007
Yes, i found in my code i called lookup with wrong name so streams got
duplicated. Now it works fine and session reuse works as well.
Thanks
Ross Finlayson wrote:
>> In ServerMediaSession, fDeleteWhenUnreferenced is always False and there
>> is no way to set it True. This means that in
>> RTSPServer::RTSPClientSession::~RTSPClientSession()
>>
>> if (fOurServerMediaSession->referenceCount() == 0
>> && fOurServerMediaSession->deleteWhenUnreferenced())
>>
>> is awlays false and current session is never freed, or i miss something.
>
> Yes, you missed that it's set to true in
> "RTSPServer::removeServerMediaSession()", if the "ServerMediaSession"
> object is currently in use (i.e., currently has clients).
>
>> I extend ServerMediaSession class with my own and log new and delete and
>> i see new allocations but never see destructor is being called.
>
> "ServerMediaSession" objects are removed/deleted as a result of
> "RTSPServer::removeServerMediaSession()" being called.
More information about the live-devel
mailing list