Playbin2 cann't use "about-to-finish" signal to change the uri.

Bug #929264 reported by charlie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-omap4-extras-multimedia
Confirmed
Undecided
Xavier Boudet

Bug Description

version: Ubuntu11.10
Pipeline:
gst-launch playbin2 uri=file:///1080p.mov video-sink="pvrvideosink force-aspect-ratio=TRUE"

Performance:
when I use "about-to-finish" signal of playbin2 to change the uri of next movie,
The next movie cann't play smoothly like usual.

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!

Regards!
Charlie

Revision history for this message
Xavier Boudet (x-boudet) wrote :

The bug is confirmed.
We will investigate the regression and keep you informed.

Changed in ubuntu-omap4-extras-multimedia:
status: New → Confirmed
assignee: nobody → Xavier Boudet (x-boudet)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.