Thanks Ralph. It works with following warning message.<br><br>Trying to join task 0xb63dad38 from its thread would deadlock.<br>You cannot change the state of an element from its streaming<br>thread. Use g_idle_add() or post a GstMessage on the bus to<br>
schedule the state change from the main thread.<br><br>Signal handler looks like:<br><br>void about_to_finish_cb (GstElement * element, gpointer * uri)<br>{<br>    g_print("Received about_to_finish..... change uri..\n");<br>
    gst_element_set_state (element, GST_STATE_READY);<br>    gchar* uri2 = (gchar*)uri;  <br>    g_object_set (G_OBJECT (element), "uri",uri2, NULL);<br>    gst_element_set_state (element, GST_STATE_PLAYING);<br>
}<br><br>Is there any clean way of implementing same on GStreamer version - 0.10.30?<br><br>Thanks,<br>Rajnikant<br><br><div class="gmail_quote">On Tue, Jan 8, 2013 at 9:36 PM, Ralph <span dir="ltr"><<a href="mailto:ralph.gucwa@racelogic.co.uk" target="_blank">ralph.gucwa@racelogic.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Instead of EOS message, use about-to-finish signal.  As soon as you receive<br>
this signal, change the uri.  I'm sure you will find examples on the<br>
internet.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/issue-in-setting-pipeline-again-in-PLAYING-state-once-it-got-EOS-tp4657814p4657816.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/issue-in-setting-pipeline-again-in-PLAYING-state-once-it-got-EOS-tp4657814p4657816.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Rajnikant Jachak.<br><br>The pessimist sees difficulty in every opportunity. The optimist sees the opportunity in every difficulty.