it helped... thanks <br><br><div class="gmail_quote">On Sun, Jul 26, 2009 at 7:53 PM, Håvard Graff <span dir="ltr"><<a href="mailto:havard.graff@tandberg.com">havard.graff@tandberg.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">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)</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Regards,</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;">Havard</span></font></p>
<p><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<div style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr align="center" size="2" width="100%">
</span></font></div>
<p><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Sameer Naik
[mailto:<a href="mailto:sameer.subscriptions@damagehead.com" target="_blank">sameer.subscriptions@damagehead.com</a>] <br>
<b><span style="font-weight: bold;">Sent:</span></b> 24. juli 2009 17:19<br>
<b><span style="font-weight: bold;">To:</span></b> Discussion of the development
of GStreamer<br>
<b><span style="font-weight: bold;">Subject:</span></b> [gst-devel] Waiting for
pipeline to preroll</span></font></p>
</div><div><div></div><div class="h5">
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">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</span></font></p>
</div></div></div>
</div>
<br>------------------------------------------------------------------------------<br>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>