[gst-devel] Waiting for pipeline to preroll

Sameer Naik sameer.subscriptions at damagehead.com
Fri Jul 24 17:19:16 CEST 2009


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/20090724/31b1f79c/attachment.htm>


More information about the gstreamer-devel mailing list