[gst-devel] Waiting for pipeline to preroll

Håvard Graff havard.graff at tandberg.com
Sun Jul 26 16:23:51 CEST 2009


The property async=TRUE on your audio and video sinks will make the pipeline PREROLL before going to PLAYING. (They will not go to playing until they have received the first buffer)

 

Regards,

Havard

 

________________________________

From: Sameer Naik [mailto:sameer.subscriptions at damagehead.com] 
Sent: 24. juli 2009 17:19
To: Discussion of the development of GStreamer
Subject: [gst-devel] Waiting for pipeline to preroll

 

Hi,
I am developing a audio/video application using gstreamer as the playback backend.
When i create a audio/video pipeline and set the pipeline to the PLAYING state, a lot of times
the playback does not start.

Only if i set the pipeline to PAUSED, then put the application to sleep for like 1/10th of a second.
and then set the pipeline to PLAYING, everything works well. This problem occurs only when the 
media has both audio and video streams. 

I believe this is because the pipeline is set to PLAYING before all pads are generated and 
connected. i.e. before the audio and video decode and rendering bins are loaded and connected.

I think if i wait for the pipeline to PREROLL before setting it to PLAYING will make things function correctly.
Can anyone tell me how can i wait for the pipeline to PREROLL completely.

Regards
~Sameer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090726/5eacb5da/attachment.htm>


More information about the gstreamer-devel mailing list