<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi</div><div><br></div><div>Signals, messages and many other things require the GMainLoop running to work. If you have a while(1) you may try adding g_main_context_iteration() before completing a loop iteration. This will check for pending events. See more at:</div><div><br></div><div><h3 style="margin: 0px; padding: 0px; border: 0px; vertical-align: baseline;"><a href="https://developer.gnome.org/glib/2.32/glib-The-Main-Event-Loop.html#g-main-context-iteration">https://developer.gnome.org/glib/2.32/glib-The-Main-Event-Loop.html#g-main-context-iteration</a></h3><br><div>Michael</div></div><div><br>On Jan 27, 2017, at 07:41, deepthips <<a href="mailto:deepthips@tataelxsi.co.in">deepthips@tataelxsi.co.in</a>> wrote:<br><br></div><blockquote type="cite"><div><span>I have a gstreamer code with functions such as load_pipeline, play, stop and</span><br><span>seek.</span><br><span>Using a testapp, in while (1) loop, I monitor for user input and call load /</span><br><span>play / stop accordingly. </span><br><span>Since I have a while loop in testapp, I dont have g_main_loop running in my</span><br><span>gstreamer code.</span><br><span></span><br><span>I can successfully do load and play. Problem is: once playing, it will no</span><br><span>longer monitor for any other key input. It is like it went to blocked state.</span><br><span>(Just like g_main_loop is running)</span><br><span>My play function is only having the line gst_element_set_state(play,</span><br><span>GST_STATE_PLAYING);</span><br><span>What could be the issue.</span><br><span></span><br><span></span><br><span></span><br><span>--</span><br><span>View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Blocked-when-setting-state-to-PLAYING-tp4681649.html">http://gstreamer-devel.966125.n4.nabble.com/Blocked-when-setting-state-to-PLAYING-tp4681649.html</a></span><br><span>Sent from the GStreamer-devel mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.</span><br><span>_______________________________________________</span><br><span>gstreamer-devel mailing list</span><br><span><a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a></span><br><span><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></span><br></div></blockquote></body></html>