summaryrefslogtreecommitdiff
path: root/omx/gstomxvideodec.c
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-19 09:04:09 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-19 09:04:09 +0200
commit429b0e1e2738b14bfd307d03b001e5b51fc5a720 (patch)
tree71c3a2cf91d749a683dd7f2efa96ee5f373b2364 /omx/gstomxvideodec.c
parente08c0dc88a91108a6d9fec024ad0a4ee47dabb50 (diff)
downloadgst-omx-429b0e1e2738b14bfd307d03b001e5b51fc5a720.tar.gz
omxvideodec: Check return value of gst_omx_port_set_enabled() for errors
CID 1214589
Diffstat (limited to 'omx/gstomxvideodec.c')
-rw-r--r--omx/gstomxvideodec.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index 27f3b3b..2536d82 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -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);