mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
omxvideodec: Check return value of gst_omx_port_set_enabled() for errors
CID 1214589
This commit is contained in:
parent
e08c0dc88a
commit
429b0e1e27
1 changed files with 9 additions and 2 deletions
|
@ -787,8 +787,15 @@ gst_omx_video_dec_allocate_output_buffers (GstOMXVideoDec * self)
|
|||
min);
|
||||
min = port->port_def.nBufferCountMin;
|
||||
|
||||
if (!was_enabled)
|
||||
gst_omx_port_set_enabled (port, FALSE);
|
||||
if (!was_enabled) {
|
||||
err = gst_omx_port_set_enabled (port, FALSE);
|
||||
if (err != OMX_ErrorNone) {
|
||||
GST_INFO_OBJECT (self,
|
||||
"Failed to disable port again: %s (0x%08x)",
|
||||
gst_omx_error_to_string (err), err);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
if (min != port->port_def.nBufferCountActual) {
|
||||
err = gst_omx_port_update_port_definition (port, NULL);
|
||||
|
|
Loading…
Reference in a new issue