Commit a1aae3fd authored by Haihao Xiang's avatar Haihao Xiang Committed by Víctor Manuel Jáquez Leal
Browse files

msdk: fix the wrong operator

The condition is for video memory only, so the operator should be
& instead of |
parent 5efe9944
......@@ -125,7 +125,7 @@ gst_msdk_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
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)) {
"No MSDK context or Allocation response for using video memory");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment