<div dir="ltr">Hi,<div><br></div><div>I tried to remove gstreamer prerolling from my plugin and in READY_TO_PAUSE transition I tried to directly set my audio device to PAUSE state which failed. Later I found that audio device needs some information about audio format to be set before I can set it to PAUSE state.</div>

<div><br></div><div>I found audio format is set in gst_pad_set_setcaps_function which is not being invoked from gstreamer until one audio buffer is received on audio pad.This is not letting me set my audio device to PAUSE state and forcing me to wait for one audio buffer.</div>

<div><br></div><div>Is it possible to get this information about audio format without waiting for one audio buffer?</div><div><br></div><div>Thanks.</div><div>Yogesh</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 7, 2014 at 2:07 AM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Do, 2014-02-06 at 22:40 +0530, Yogesh Tyagi wrote:<br>
> Hi,<br>
><br>
> I tried setting async to false but due to this set caps is not  getting<br>
>  called  for audio where the audio format is set. So my audio decoder is<br>
> not getting initialized and due to this I hear no audio when I keep async<br>
> to false.<br>
<br>
</div>async=false on the sink should have no effect on any other elements and<br>
especially not on setting caps anywhere. However you will need to do<br>
more than that to properly integrate your hardware pre-rolling into<br>
GStreamer. Check the code in GstBaseSink to see what it is doing for<br>
pre-rolling. You'll need to do that just with your hardware pre-rolling.<br>
<br>
I think it will also be a good idea to extend basesink a bit to allow<br>
easier integration of more special pre-rolling mechanisms. I.e. allow<br>
the subclass to get some control over what is happening there and when<br>
the sink is considered pre-rolled and when not.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>