Section 3.2.2.5 of OpenMAX IL spec 1.1 states that:

If the value of nParam is -1, the component shall disable all ports.
But the nParam parameter of the OMX_SendCommand() API is of type OMX_U32. So it can't have a value of -1.