Try moving the call to
        Medium::close(transportStream);
after the call to
        Medium::close(rtspClient);

Then the fInputSource variable is not valid in FramedFilter::doStopGettingFrames and the process crashes in the MPEG2TransportStreamFromESSource destructor.

On 11.08.2021 14:23, Ross Finlayson wrote:

On Aug 11, 2021, at 4:15 AM, Andrey Shvyrkin <ashvyr...@gosniias.ru> wrote:

Thanks for answers.

I'm using
EventTrigger to exit the event loop at any point in time by changing the value 
of the watch variable. And then I use the previously presented code to close 
the session and free memory. In theory, I should free the memory used by the 
MPEG2TransportStreamFromESSource variable before closing the session, but in 
this case, when Medium::close is called to close the session, the application 
crashes in the RTCPInstance destructor
Try moving the call to
        Medium::close(transportStream);
after the call to
        Medium::close(rtspClient);

(Or just call exit() :-)


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


_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

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

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to