[vlc-commits] va_surface: remove the external pool API
Steve Lhomme
git at videolan.org
Fri Oct 18 11:02:13 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Sep 30 11:33:59 2019 +0200| [ff4e03dd0cfd75ce3922c7d9768a0e1bd28a1d31] | committer: Steve Lhomme
va_surface: remove the external pool API
Only D3D11 was using it and it doesn't make sense in push.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ff4e03dd0cfd75ce3922c7d9768a0e1bd28a1d31
---
modules/codec/avcodec/va_surface.c | 4 ++--
modules/codec/avcodec/va_surface_internal.h | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/codec/avcodec/va_surface.c b/modules/codec/avcodec/va_surface.c
index 88886cae9f..e9a010129d 100644
--- a/modules/codec/avcodec/va_surface.c
+++ b/modules/codec/avcodec/va_surface.c
@@ -84,7 +84,7 @@ int va_pool_SetupDecoder(vlc_va_t *va, va_pool_t *va_pool, const AVCodecContext
{
va_pool->surface_width = fmt->i_width;
va_pool->surface_height = fmt->i_height;
- va_pool->surface_count = va_pool->can_extern_pool ? 0 : count;
+ va_pool->surface_count = count;
}
done:
@@ -198,7 +198,7 @@ va_pool_t * va_pool_Create(vlc_va_t *va, const struct va_pool_cfg *cbs)
msg_Dbg(va, "CreateDevice succeed");
va_pool->surface_count = 0;
- va_pool->can_extern_pool = false;
+
return va_pool;
}
diff --git a/modules/codec/avcodec/va_surface_internal.h b/modules/codec/avcodec/va_surface_internal.h
index 9d34863610..11378a28fd 100644
--- a/modules/codec/avcodec/va_surface_internal.h
+++ b/modules/codec/avcodec/va_surface_internal.h
@@ -45,8 +45,6 @@ typedef struct
const struct va_pool_cfg *callbacks;
- bool can_extern_pool;
-
} va_pool_t;
struct va_pool_cfg {
More information about the vlc-commits
mailing list