Hi,<br>I am developing a audio/video application using gstreamer as the playback backend.<br>When i create a audio/video pipeline and set the pipeline to the PLAYING state, a lot of times<br>the playback does not start.<br>
<br>Only if i set the pipeline to PAUSED, then put the application to sleep for like 1/10th of a second.<br>and then set the pipeline to PLAYING, everything works well. This problem occurs only when the <br>media has both audio and video streams. <br>
<br>I believe this is because the pipeline is set to PLAYING before all pads are generated and <br>connected. i.e. before the audio and video decode and rendering bins are loaded and connected.<br><br>I think if i wait for the pipeline to PREROLL before setting it to PLAYING will make things function correctly.<br>
Can anyone tell me how can i wait for the pipeline to PREROLL completely.<br><br>Regards<br>~Sameer<br>