d3d11: Update build-time dependency
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-bad / gst-libs / gst / d3d11 / gstd3d11stagingbufferpool.cpp
index b01ccbb..92d3a9c 100644 (file)
@@ -25,6 +25,7 @@
 #include "gstd3d11memory.h"
 #include "gstd3d11device.h"
 #include "gstd3d11utils.h"
+#include "gstd3d11_private.h"
 
 #include <string.h>
 
@@ -172,7 +173,7 @@ gst_d3d11_staging_buffer_pool_set_config (GstBufferPool * pool,
     desc = &priv->desc[0];
 
     width = GST_VIDEO_INFO_WIDTH (&info);
-    height = GST_VIDEO_INFO_WIDTH (&info);
+    height = GST_VIDEO_INFO_HEIGHT (&info);
 
     /* resolution of semi-planar formats must be multiple of 2 */
     switch (format->dxgi_format) {
@@ -225,7 +226,7 @@ gst_d3d11_staging_buffer_pool_set_config (GstBufferPool * pool,
       return FALSE;
     }
 
-    if (!gst_d3d11_memory_get_texture_stride (GST_D3D11_MEMORY_CAST (mem),
+    if (!gst_d3d11_memory_get_resource_stride (GST_D3D11_MEMORY_CAST (mem),
             &stride) || stride < priv->desc[i].Width) {
       GST_ERROR_OBJECT (self, "Failed to calculate stride");