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>2017-01-25 14:29:01 +0200
commit90a9e72455aafe80b740b81aa04aad0e61e1fbbe (patch)
treeb3fca114dd47397a625a7cf5485d4d1a786760c9
parente8e158fde42cae9370bccf3d307091057b15c1d2 (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 8db20a8..f9b41eb 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -1396,7 +1396,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);