diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2018-11-28 11:15:28 +0800 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-12-03 07:09:56 +0000 |
commit | a1aae3fd92b556031ca5d527769ff366b51f4f1a (patch) | |
tree | be6125b319ac54b87fa7ad9a47b6829508889c5b /sys/msdk | |
parent | 5efe9944e008a8f342c8cd3cf438c2faad8121e8 (diff) | |
download | gstreamer-plugins-bad-a1aae3fd92b556031ca5d527769ff366b51f4f1a.tar.gz |
msdk: fix the wrong operator
The condition is for video memory only, so the operator should be
& instead of |
Diffstat (limited to 'sys/msdk')
-rw-r--r-- | sys/msdk/gstmsdkbufferpool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/msdk/gstmsdkbufferpool.c b/sys/msdk/gstmsdkbufferpool.c index a18b965ad..41a8e6700 100644 --- a/sys/msdk/gstmsdkbufferpool.c +++ b/sys/msdk/gstmsdkbufferpool.c @@ -125,7 +125,7 @@ gst_msdk_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config) GST_BUFFER_POOL_OPTION_MSDK_USE_VIDEO_MEMORY)) priv->memory_type = GST_MSDK_MEMORY_TYPE_VIDEO; - if ((priv->memory_type | GST_MSDK_MEMORY_TYPE_VIDEO) && (!priv->context + if ((priv->memory_type & GST_MSDK_MEMORY_TYPE_VIDEO) && (!priv->context || !priv->alloc_response)) { GST_ERROR_OBJECT (pool, "No MSDK context or Allocation response for using video memory"); |