mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
omx: Invert assertion to let it express what was intended
This commit is contained in:
parent
1a906da409
commit
59e92f955d
1 changed files with 2 additions and 2 deletions
|
@ -1588,8 +1588,8 @@ gst_omx_port_allocate_buffers_unlocked (GstOMXPort * port,
|
||||||
gst_omx_component_get_parameter (comp, OMX_IndexParamPortDefinition,
|
gst_omx_component_get_parameter (comp, OMX_IndexParamPortDefinition,
|
||||||
&port->port_def);
|
&port->port_def);
|
||||||
|
|
||||||
g_return_val_if_fail (n != -1
|
g_return_val_if_fail (n == -1 || n >= port->port_def.nBufferCountMin,
|
||||||
&& n < port->port_def.nBufferCountMin, OMX_ErrorBadParameter);
|
OMX_ErrorBadParameter);
|
||||||
if (n == -1)
|
if (n == -1)
|
||||||
n = port->port_def.nBufferCountMin;
|
n = port->port_def.nBufferCountMin;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue