<div dir="ltr">Hi all,<div>I'm facing a crash with my iOS application. It seems the pipeline tries to draw video when graphical context is already disposed and the application crashes.</div><div>I solved executing in applicationWillResignActive (immediately before the graphical context is destroyed gst_element_set_state (pPipeline, GST_STATE_PAUSED);</div><div>This is the pseudocode:</div>







<div>







<p class=""><span class="">- (</span><span class="">void</span><span class="">)applicationWillResignActive:(</span><span class="">UIApplication</span><span class=""> *)applicationĀ </span>{<br>gst_element_set_state (pPipeline, GST_STATE_PAUSED);<br>}</p></div><div>It is not the best solution to solve the issue because sometimes my pipeline hangs pausing and the iOS application crashes due to WATCHDOG in the main thread..</div><div><br></div><div>How can I solve this issue?</div><div><br></div><div>Is there a best way to stop immediately the pipeline?</div><div><br></div><div>Thanks</div><div>Elio</div></div>