diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 6d5db9aaf6..38b4c1bf96 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -1957,6 +1957,14 @@ gst_omx_video_dec_negotiate (GstOMXVideoDec * self) GST_OMX_INIT_STRUCT (¶m); param.nPortIndex = self->dec_out_port->index; + err = gst_omx_component_get_parameter (self->dec, + OMX_IndexParamVideoPortFormat, ¶m); + if (err != OMX_ErrorNone) { + GST_ERROR_OBJECT (self, "Failed to get video port format: %s (0x%08x)", + gst_omx_error_to_string (err), err); + return FALSE; + } + for (l = negotiation_map; l; l = l->next) { GstOMXVideoNegotiationMap *m = l->data;