mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
msdk: fix the wrong operator
The condition is for video memory only, so the operator should be & instead of |
This commit is contained in:
parent
5efe9944e0
commit
a1aae3fd92
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue