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) ...@@ -125,7 +125,7 @@ gst_msdk_buffer_pool_set_config (GstBufferPool * pool, GstStructure * config)
GST_BUFFER_POOL_OPTION_MSDK_USE_VIDEO_MEMORY)) GST_BUFFER_POOL_OPTION_MSDK_USE_VIDEO_MEMORY))
priv->memory_type = GST_MSDK_MEMORY_TYPE_VIDEO; 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)) { || !priv->alloc_response)) {
GST_ERROR_OBJECT (pool, GST_ERROR_OBJECT (pool,
"No MSDK context or Allocation response for using video memory"); "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