Exemplo n.º 1
0
OMX_ERRORTYPE base_image_port_Destructor(omx_base_PortType *openmaxStandPort){

  if(openmaxStandPort->sPortParam.format.image.cMIMEType) {
    free(openmaxStandPort->sPortParam.format.image.cMIMEType);
    openmaxStandPort->sPortParam.format.image.cMIMEType = NULL;
  }

  base_port_Destructor(openmaxStandPort);

  return OMX_ErrorNone;
}
OMX_ERRORTYPE base_audio_port_Destructor(omx_base_PortType *openmaxStandPort){
	OMX_ERRORTYPE err;
	DEBUG(DEB_LEV_FUNCTION_NAME, "In %s of port %x\n", __func__, (int)openmaxStandPort);
	if(openmaxStandPort->sPortParam.format.audio.cMIMEType) {
		free(openmaxStandPort->sPortParam.format.audio.cMIMEType);
		openmaxStandPort->sPortParam.format.audio.cMIMEType = NULL;
	}
	err = base_port_Destructor(openmaxStandPort);
	if (err != OMX_ErrorNone) {
		DEBUG(DEB_LEV_ERR, "In %s base port destructor failed\n", __func__);
		return err;
	}
	DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s of port %x\n", __func__, (int)openmaxStandPort);
	return OMX_ErrorNone;
}
OMX_ERRORTYPE base_clock_port_Destructor(omx_base_PortType *openmaxStandPort){

  base_port_Destructor(openmaxStandPort);

  return OMX_ErrorNone;
}