mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
omxvideoenc: gst_omx_port_update_port_definition() returns a OMX_ERRORTYPE, not a gboolean
This commit is contained in:
parent
687a188dad
commit
42937eaea0
1 changed files with 4 additions and 2 deletions
|
@ -1186,7 +1186,8 @@ gst_omx_video_enc_set_format (GstVideoEncoder * encoder,
|
|||
}
|
||||
|
||||
GST_DEBUG_OBJECT (self, "Setting inport port definition");
|
||||
if (!gst_omx_port_update_port_definition (self->enc_in_port, &port_def))
|
||||
if (gst_omx_port_update_port_definition (self->enc_in_port,
|
||||
&port_def) != OMX_ErrorNone)
|
||||
return FALSE;
|
||||
|
||||
if (klass->set_format) {
|
||||
|
@ -1197,7 +1198,8 @@ gst_omx_video_enc_set_format (GstVideoEncoder * encoder,
|
|||
}
|
||||
|
||||
GST_DEBUG_OBJECT (self, "Updating outport port definition");
|
||||
if (!gst_omx_port_update_port_definition (self->enc_out_port, NULL))
|
||||
if (gst_omx_port_update_port_definition (self->enc_out_port,
|
||||
NULL) != OMX_ErrorNone)
|
||||
return FALSE;
|
||||
|
||||
GST_DEBUG_OBJECT (self, "Enabling component");
|
||||
|
|
Loading…
Reference in a new issue