Does "about-to-finish" signal work for video files?
forestzhu
forest0823 at 126.com
Mon Feb 27 18:06:12 PST 2012
Hi Rossana,
My method is a temporary solution.
You should push the plugin-developer to fix the bug.
1.Build a listening thread in the main process before build the pipeline
2.In the "about-to-finish" signal handle send a message to the listening
thread.
3.In the listening thread change the uri of playbin2.
static void player_change_uri (PLAYER *player)
{
gst_element_set_state(player->pipeline,GST_STATE_READY);
g_object_set (player->pipeline, "uri", get_new_uri(), NULL);
gst_element_set_state(player->pipeline,GST_STATE_PLAYING);
}
Regards!
forrest
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Does-about-to-finish-signal-work-for-video-files-tp4415640p4426702.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list