omx: Always tell the component about the right number of buffers that we're going to allocate

This commit is contained in:
Sebastian Dröge 2013-02-28 13:26:56 +01:00
parent 59e92f955d
commit 5132a89331

View file

@ -1597,7 +1597,7 @@ gst_omx_port_allocate_buffers_unlocked (GstOMXPort * port,
* the minimal number of buffers required, use the minimal
* number of buffers
*/
if (port->port_def.nBufferCountActual < n) {
if (port->port_def.nBufferCountActual != n) {
port->port_def.nBufferCountActual = n;
err = gst_omx_component_set_parameter (comp, OMX_IndexParamPortDefinition,
&port->port_def);