Comment 1 for bug 929264

Revision history for this message
charlie (zzxzz) wrote :

Hi here,

Do I have to change the uri in the main thread in the new version ?

My old code likes below:

signal handle:
static void player_change_file(GstElement *pipeline,PLAYER_PLUGIN *player)
    player->uri = get_new_uri();//get the next uri for player
    g_object_set (player->pipeline, "uri", player->uri , NULL);


in player process:
g_signal_connect (player->pipeline, "about-to-finish", G_CALLBACK (player_change_file),player);

Is this a bug or my program's mistake?
Eager for your reply!