omx: Invert assertion to let it express what was intended

This commit is contained in:
Sebastian Dröge 2013-02-28 13:07:58 +01:00
parent 1a906da409
commit 59e92f955d

View file

@ -1588,8 +1588,8 @@ gst_omx_port_allocate_buffers_unlocked (GstOMXPort * port,
gst_omx_component_get_parameter (comp, OMX_IndexParamPortDefinition,
&port->port_def);
g_return_val_if_fail (n != -1
&& n < port->port_def.nBufferCountMin, OMX_ErrorBadParameter);
g_return_val_if_fail (n == -1 || n >= port->port_def.nBufferCountMin,
OMX_ErrorBadParameter);
if (n == -1)
n = port->port_def.nBufferCountMin;