Hi, thanks for the response, interesting tip. IŽll need to work around a little in some concepts before trying it.<br>Cheers!<br><br>Rossana<br><br><br><div class="gmail_quote">2012/2/28 forestzhu <span dir="ltr">&lt;<a href="mailto:forest0823@126.com">forest0823@126.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Rossana,<br>
My method is a temporary solution.<br>
You should push the plugin-developer to fix the  bug.<br>
<br>
1.Build a listening thread in the main process before build the pipeline<br>
2.In the &quot;about-to-finish&quot; signal handle send a message to the listening<br>
thread.<br>
3.In the listening thread change the uri of playbin2.<br>
<br>
static void player_change_uri (PLAYER *player)<br>
{<br>
        gst_element_set_state(player-&gt;pipeline,GST_STATE_READY);<br>
        g_object_set (player-&gt;pipeline, &quot;uri&quot;, get_new_uri(), NULL);<br>
        gst_element_set_state(player-&gt;pipeline,GST_STATE_PLAYING);<br>
}<br>
<br>
Regards!<br>
<br>
forrest<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Does-about-to-finish-signal-work-for-video-files-tp4415640p4426702.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Does-about-to-finish-signal-work-for-video-files-tp4415640p4426702.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>