summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-05-19 08:47:36 +0200
committerSebastian Dröge <sebastian@centricular.com>2014-05-19 08:47:36 +0200
commit800ef8ab1483c47d0ddb7e5bcb94ebb62680507a (patch)
tree4f9fcf46ed2ed38194ead4e823738a696e19a5c4
parent7b558e37bc80d40a118f622fd822159a3addd8bc (diff)
downloadgst-omx-800ef8ab1483c47d0ddb7e5bcb94ebb62680507a.tar.gz
omx: Fix comparisons in gst_omx_state_to_string() case to actually make sense
CID 1214593
-rw-r--r--omx/gstomx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c
index 04c5502..7f714bc 100644
--- a/omx/gstomx.c
+++ b/omx/gstomx.c
@@ -2394,9 +2394,10 @@ gst_omx_state_to_string (OMX_STATETYPE state)
case OMX_StateWaitForResources:
return "WaitForResources";
default:
- if (state >= OMX_StateKhronosExtensions)
+ if (state >= OMX_StateKhronosExtensions
+ && state < OMX_StateVendorStartUnused)
return "KhronosExtensionState";
- else if (state >= OMX_StateVendorStartUnused)
+ else if (state >= OMX_StateVendorStartUnused && state < OMX_StateMax)
return "CustomVendorState";
break;
}