diff --git a/omx/gstomxh265enc.c b/omx/gstomxh265enc.c index a57112a635..3185ee313a 100644 --- a/omx/gstomxh265enc.c +++ b/omx/gstomxh265enc.c @@ -341,7 +341,8 @@ set_intra_period (GstOMXH265Enc * self) err = gst_omx_component_set_parameter (GST_OMX_VIDEO_ENC (self)->enc, - OMX_ALG_IndexParamVideoInstantaneousDecodingRefresh, &config_idr); + (OMX_INDEXTYPE) OMX_ALG_IndexParamVideoInstantaneousDecodingRefresh, + &config_idr); if (err != OMX_ErrorNone) { GST_ERROR_OBJECT (self, "can't set OMX_IndexConfigVideoAVCIntraPeriod %s (0x%08x)", diff --git a/omx/gstomxvp8dec.c b/omx/gstomxvp8dec.c index 61886b8fbd..dee015c3e8 100644 --- a/omx/gstomxvp8dec.c +++ b/omx/gstomxvp8dec.c @@ -91,7 +91,8 @@ gst_omx_vp8_dec_set_format (GstOMXVideoDec * dec, GstOMXPort * port, OMX_PARAM_PORTDEFINITIONTYPE port_def; gst_omx_port_get_port_definition (port, &port_def); - port_def.format.video.eCompressionFormat = OMX_VIDEO_CodingVP8; + port_def.format.video.eCompressionFormat = + (OMX_VIDEO_CODINGTYPE) OMX_VIDEO_CodingVP8; ret = gst_omx_port_update_port_definition (port, &port_def) == OMX_ErrorNone; return ret;