diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-05-19 08:40:23 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-05-19 08:44:55 +0200 |
commit | 93528dc43b783a758f87c579f694b0d5c7098536 (patch) | |
tree | d7388dfa58ae8059c053aff753cc521039216d29 | |
parent | 2c3797acfe3dc645ad2d4d09b15de7b1bc544cca (diff) | |
download | gst-omx-93528dc43b783a758f87c579f694b0d5c7098536.tar.gz |
omx: Fix comparisons in gst_omx_command_to_string() default cause to actually work
CID 1214591
-rw-r--r-- | omx/gstomx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/omx/gstomx.c b/omx/gstomx.c index fecae5a..1467465 100644 --- a/omx/gstomx.c +++ b/omx/gstomx.c @@ -2416,9 +2416,10 @@ gst_omx_command_to_string (OMX_COMMANDTYPE cmd) case OMX_CommandMarkBuffer: return "MarkBuffer"; default: - if (cmd >= OMX_CommandKhronosExtensions) + if (cmd >= OMX_CommandKhronosExtensions + && cmd < OMX_CommandVendorStartUnused) return "KhronosExtensionCommand"; - else if (cmd >= OMX_CommandVendorStartUnused) + if (cmd >= OMX_CommandVendorStartUnused && cmd < OMX_CommandMax) return "VendorExtensionCommand"; break; } |