<div><b>BUG: </b>Pipeline is not restarted correctly. The previous code was creating a new GSTpipeline after each rollover. However, the destructor for the previous running pipeline was not called. As consequence, a new task is created each rollover without terminating the previous ones. In my machine (Ubuntu 12.04) once the process gets to 350 threads it&#39;s killed automatically once it tries to create more threads.</div>

<div><br></div><div><b>Fix:</b> Instead of creating a new GST pipeline, the new code calls the gst_element_seek() method in order to reset the current running pipeline. This call will restart the video streaming but without consuming any new resources. </div>

<div><br></div><div><b>Modified files:</b></div><div>M    cameraserver.cpp<br></div><div>M    gstpipeline.cpp</div><div>M    gstpipeline.h</div><div><br></div><div><b>Revision <span style="font-family:arial,sans-serif;font-size:12.727272033691406px">827</span></b></div>