<div dir="ltr">Hi, <div><br></div><div>I tried to look for <font face="arial, sans-serif">GAP event in </font><span style="font-family:arial,sans-serif;font-size:13px">resindvdbin</span><span style="font-family:arial,sans-serif;font-size:13px"> but I could not find it. Can you please point me to the correct source?</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks,</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Yogesh</span></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 18, 2014 at 1:06 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 Mo, 2014-02-17 at 11:57 +0530, Yogesh Tyagi wrote:<br>
> Hi,<br>
><br>
</div><div class="">> I tried to remove gstreamer prerolling from my plugin and in READY_TO_PAUSE<br>
> transition I tried to directly set my audio device to PAUSE state which<br>
> failed. Later I found that audio device needs some information about audio<br>
> format to be set before I can set it to PAUSE state.<br>
><br>
> I found audio format is set in gst_pad_set_setcaps_function which is not<br>
> being invoked from gstreamer until one audio buffer is received on audio<br>
> pad.This is not letting me set my audio device to PAUSE state and forcing<br>
> me to wait for one audio buffer.<br>
><br>
> Is it possible to get this information about audio format without waiting<br>
> for one audio buffer?<br>
<br>
</div>Yes, if you use GStreamer 1.x you'll get the caps before any audio<br>
buffers arrive. In 0.10 it's not possible.<br>
<br>
But even then, usually an audio buffer needs to be decoded before the<br>
format is really known. See how this very problem is solved in<br>
resindvdbin in 1.x (check the sending of GAP events there).<br>
<br>
In 0.10 you're basically lost here.<br>
<div class="HOEnZb"><div class="h5"><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>
</div></div><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>