[vlc-commits] d3d11va: no need for a filter when we have a VideoProcessor

Steve Lhomme git at videolan.org
Sun Oct 9 10:46:24 CEST 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Sep  6 09:20:16 2016 +0200| [795eef0f0853f924e05779260d7070819989e8f6] | committer: Jean-Baptiste Kempf

d3d11va: no need for a filter when we have a VideoProcessor

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=795eef0f0853f924e05779260d7070819989e8f6
---

 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 038b117..1b4bac0 100644
--- a/modules/codec/avcodec/d3d11va.c
+++ b/modules/codec/avcodec/d3d11va.c
@@ -471,7 +471,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)



More information about the vlc-commits mailing list