summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-02-28 13:26:56 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-02-28 13:26:56 +0100
commit5132a89331139ba1e16c4fa7070a0253e7c385f5 (patch)
treeac955eead910edca9c1ec39c1b68ee064f99cc45
parent59e92f955dfc793f104e2dd6ba9f0ad07880ee84 (diff)
downloadgst-omx-5132a89331139ba1e16c4fa7070a0253e7c385f5.tar.gz
omx: Always tell the component about the right number of buffers that we're going to allocate
-rw-r--r--omx/gstomx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index 0387b9b..f358f9e 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -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);