omx: prevent input port enable/disable for software codecs

Bug: 29421804
Change-Id: Iba1011e9af942a6dff7f659af769a51e3f5ba66f

OMX_ERRORTYPE SimpleSoftOMXComponent::allocateBuffer(
        OMX_BUFFERHEADERTYPE **header,
        OMX_U32 portIndex,
        OMX_PTR appPrivate,
        OMX_U32 size) {
    OMX_U8 *ptr = new OMX_U8[size];

    OMX_ERRORTYPE err =
        useBuffer(header, portIndex, appPrivate, size, ptr);

 if (err != OMX_ErrorNone) {
 delete[] ptr;
        ptr = NULL;

 return err;
 }

    CHECK((*header)->pPlatformPrivate == NULL);
 (*header)->pPlatformPrivate = ptr;

 return OMX_ErrorNone;
}

OMX_ERRORTYPE SimpleSoftOMXComponent::allocateBuffer(
        OMX_BUFFERHEADERTYPE **header,
        OMX_U32 portIndex,
        OMX_PTR appPrivate,
        OMX_U32 size) {
    OMX_U8 *ptr = new OMX_U8[size];

    OMX_ERRORTYPE err =
        useBuffer(header, portIndex, appPrivate, size, ptr);

 if (err != OMX_ErrorNone) {
 delete[] ptr;
        ptr = NULL;

 return err;
 }

    CHECK((*header)->pPlatformPrivate == NULL);
 (*header)->pPlatformPrivate = ptr;

 return OMX_ErrorNone;
}
