summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-11-25 23:56:06 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-11-26 00:07:13 +0200
commit53d8d353f0b5a42cd6495c1f4cd1e4b9bf6be515 (patch)
tree422a0a3bb4e34688d7f463ee48a9b6e80a86618a
parentbaaf404f2be936dff082e179521f0cb468375135 (diff)
omx: Fix compiler warning with latest clang
gstomx.c:1376:42: error: implicit conversion from enumeration type 'GstOMXAcquireBufferReturn' to different enumeration type 'OMX_ERRORTYPE' (aka 'enum OMX_ERRORTYPE') [-Werror,-Wenum-conversion] g_return_val_if_fail (!port->tunneled, GST_OMX_ACQUIRE_BUFFER_ERROR); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ https://bugzilla.gnome.org/show_bug.cgi?id=775112
-rw-r--r--omx/gstomx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index 7044400..b29fb6d 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -1373,7 +1373,7 @@ gst_omx_port_release_buffer (GstOMXPort * port, GstOMXBuffer * buf)
OMX_ERRORTYPE err = OMX_ErrorNone;
g_return_val_if_fail (port != NULL, OMX_ErrorUndefined);
- g_return_val_if_fail (!port->tunneled, GST_OMX_ACQUIRE_BUFFER_ERROR);
+ g_return_val_if_fail (!port->tunneled, OMX_ErrorUndefined);
g_return_val_if_fail (buf != NULL, OMX_ErrorUndefined);
g_return_val_if_fail (buf->port == port, OMX_ErrorUndefined);