How to use the "about-to-finish" signal?
panda_user
zzxzz at sina.com
Sun Feb 5 22:46:14 PST 2012
Hi all,
I have a project on a gstreamer player.
In my code I use the "about-to-finish" signal of playbin2 to change the uri.
But I met a problem ,I found the next movies can not play smoothly.
Do I need to quit the mainloop ,free the pipeline and rebuild it ?
my pipeline :
gst-launch playbin2 uri="file:///myfile.mov" video-sink=pvrvideosink
in player process:
...
g_signal_connect (player->pipeline, "about-to-finish", G_CALLBACK
(player_change_file),player);
...
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);
}
Pls:
The black borders of the movie sometimes show blurred screen,
What can I do for it?
Regards!
Charlie
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-use-the-about-to-finish-signal-tp4360554p4360554.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list