omx: Always tell the component about the right number of buffers that we're going...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 28 Feb 2013 12:26:56 +0000 (13:26 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 28 Feb 2013 12:26:56 +0000 (13:26 +0100)
omx/gstomx.c

index 0387b9b..f358f9e 100644 (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);