<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello everyone,</div><div><br></div><div>I am facing a strange behavior with my RTSP server setup and was hoping for any assistance.</div><div><br></div><div>The issue is that I have an RTSP Server that starts on a thread.</div><div><br></div><div>When no VLC client is connected, I check the memory and it is stable.</div><div><br></div><div>When I connect the VLC client there is an initial jump in the memory usage of about 20-30 mb.</div><div><br></div><div>Thereafter, the memory usage climbs by a few megs every 10-20 seconds and stabilizes around 80 mb.</div><div><br></div><div>The problem seems to occur after I disconnect the VLC client by closing the window.</div><div><br></div><div>The used up memory from the VLC connection is not released. If I try to connect with the VLC Client again, it gives me a segmentation fault and breaks the application. The message I get is:</div><div><br></div><div><i>(server:2331): GStreamer-CRITICAL **: 14:54:31.771: <br>Trying to dispose element pipeline0, but it is in READY instead of the NULL state.<br>You need to explicitly set elements to the NULL state before<br>dropping the final reference, to allow them to clean up.<br>This problem may also be caused by a refcounting bug in the<br>application or some element.<br><br>Segmentation fault</i></div><div><br></div><div>It seems as if I need to dispose something which I am not presently doing when the client is disconnected. Maybe I need to stop the pipeline when no more clients are present ?</div><div><br></div><div>Please see attached code.<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-size:12.8px">Sincerely,</span><div><br></div><div>Dwight Kulkarni                <br></div></div></div></div></div></div></div></div></div></div></div>