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!
Hi here,
Do I have to change the uri in the main thread in the new version ?
My old code likes below:
signal handle: change_ file(GstElement *pipeline, PLAYER_ PLUGIN *player)
static void player_
{
player->uri = get_new_uri();//get the next uri for player
g_object_set (player->pipeline, "uri", player->uri , NULL);
}
in player process: change_ file),player) ;
...
g_signal_connect (player->pipeline, "about-to-finish", G_CALLBACK (player_
...
Is this a bug or my program's mistake?
Eager for your reply!
Regards!
Charlie