<br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 8:51 AM, Felipe Contreras <span dir="ltr">&lt;<a href="mailto:felipe.contreras@gmail.com">felipe.contreras@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
3) Your solution doesn&#39;t conform with GStreamer API<br>
<br>
You can&#39;t just pad_buffer_alloc() and unref a buffer. If this buffer<br>
comes from a sink that has a ring-buffer, like pulsesink, the sequence<br>
would be screwed up.<br><br></blockquote><div><br></div><div>note: this is generally a problem with OpenMAX, if you want to allow reverse caps negotiation to influence the output port params.  You need to allocate a buffer to trigger caps negotiation.. although that isn&#39;t yet a convenient point to use the buffer.  I guess you could stuff the buffer in some member field in GOmxPort or somewhere like that, and then use it later.  Not very elegant...</div>
<div><br></div><div>At least it isn&#39;t a problem with the video sinks I&#39;ve seen.  But it is a valid point if you want to use OMX based audio decoders.</div><div><br></div><div>BR,</div><div>-R<br><br></div><div><br>
</div><div><br></div></div>