[Live-devel] HLSProxy

Andrey Shvyrkin ashvyrkin at gosniias.ru
Tue Aug 10 10:51:14 PDT 2021


Hello Ross!

We have been using your library for playing and streaming media for a 
long time. Now we have decided to support HLS technology in our product. 
I used source 'live555HLSProxy.cpp' to make changes to our RTSP client 
but I ran into a problem freeing memory.

If I use 'live555HLSProxy.cpp' source code, I can free memory with code:

TaskScheduler* scheduler;
UsageEnvironment* env;
RTSPClient* rtspClient;
MediaSession* session;
MPEG2TransportStreamFromESSource* transportStream;

............................................................

MediaSubsessionIterator iter(*session);
MediaSubsession* subsession;
while ((subsession = iter.next()) != NULL) {
     if (subsession->sink != NULL) {
         Medium::close(subsession->sink);
         subsession->sink = NULL;
     }
}
Medium::close(session);
Medium::close(rtspClient);
env->reclaim();
delete scheduler;

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

-- 
С уважением, Андрей Швыркин
Начальник группы "Технологии анализа движения и видеонаблюдения"
ФГУП "ГосНИИАС"
Моб.: +7 903 135-10-63
  
Best regards, Andrey Shvyrkin
Head of group "Technologies of video surveillance"
FGUP "GosNIIAS"
Cell: +7 903 135-10-63



More information about the live-devel mailing list