[vlc-devel] [PATCH 3/8] d3d11va: no need for a filter when we have a VideoProcessor
Steve Lhomme
robux4 at videolabs.io
Tue Sep 6 11:52:35 CEST 2016
---
modules/codec/avcodec/d3d11va.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/d3d11va.c b/modules/codec/avcodec/d3d11va.c
index 41f7f10..5123fc7 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -481,7 +481,7 @@ static int Open(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
if (err!=VLC_SUCCESS)
goto error;
- if (p_sys == NULL)
+ if (p_sys == NULL && sys->videoProcessor == NULL)
{
sys->filter = CreateFilter( VLC_OBJECT(va), fmt, sys->i_chroma);
if (sys->filter == NULL)
--
2.8.2
More information about the vlc-devel
mailing list