I respond to myself but it could help anyone else. Now it works.<br>I modified the about-to-finish event, setting the pipeline to ready, once the uri was set, I change the pipeline state to PLAY again<br><br>void about_to_finish_cb (GstElement * element, gpointer * uri)<br>
{<br>    gst_element_set_state (play, GST_STATE_READY);<br>    gchar* uri2 = (gchar*)uri;<br>    <br>    g_object_set (G_OBJECT (element), &quot;uri&quot;,uri2, NULL);<br>    gst_element_set_state (play, GST_STATE_PLAYING);<br>
}<br><br>Any suggestion are welcome, I don&#39;t know if I am doing the right thing. According to some examples change the pipeline state it woudln&#39;t necessary, but it didn&#39;t work for me.<br><br>Thanks, <br><br>Rossana<br>
<br><br><div class="gmail_quote">2012/1/5 Rossana Guerra <span dir="ltr">&lt;<a href="mailto:guerra.rossana@gmail.com">guerra.rossana@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The code is very simple, a playbin2, with an uri, and the next uri is set in the about-to-finish signal.<br><br>void about_to_finish_cb (GstElement * element, gpointer * uri)<br>{<br>    gchar* uri2 = (gchar*)uri;   <br>    g_object_set (G_OBJECT (element), &quot;uri&quot;,uri2, NULL);<br>

}<br><br>I tested it by hardcoding also: g_object_set (G_OBJECT (element), &quot;uri&quot;,&quot;file:///home/videos/video1.avi&quot;, NULL); It didn&#39;t work either.<br><br>Here is the code where I do the callback in the main, the whole code is very straight forward, so I think the problem is how I call the about-to-finish event.<br>

<br>char uri_next[] = &quot;file:///home/videos/video11.avi&quot;;<br>g_signal_connect (play, &quot;about-to-finish&quot;, G_CALLBACK (about_to_finish_cb),uri_next);<br>gst_element_set_state (play, GST_STATE_PLAYING);<br>

<br>The error appears in the about_to_finish_cb function, when I try to set the new uri: GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)&#39; failed<br><br>I checked the mailing list but none of the examples suits mine.<br>

<br>Thank you.<span class="HOEnZb"><font color="#888888"><br><br>Rossana<br>
</font></span></blockquote></div><br>