mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +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,
|
||||
&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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue