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.<br><br>Rossana<br>