[vlc-commits] deinterlace:dxva: fix a bogus string test

Steve Lhomme git at videolan.org
Fri Aug 4 11:58:29 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Aug  4 11:30:56 2017 +0200| [1e0e7c6ba257a92aeffdc3c357e759e7c858cb54] | committer: Jean-Baptiste Kempf

deinterlace:dxva: fix a bogus string test

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

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

 modules/video_output/win32/d3d11_deinterlace.c | 2 +-
 modules/video_output/win32/dxva2_deinterlace.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/win32/d3d11_deinterlace.c b/modules/video_output/win32/d3d11_deinterlace.c
index e7d6da8245..63a087f7c1 100644
--- a/modules/video_output/win32/d3d11_deinterlace.c
+++ b/modules/video_output/win32/d3d11_deinterlace.c
@@ -341,7 +341,7 @@ static int Open(vlc_object_t *obj)
         msg_Dbg(filter, "unknown mode %s, trying blend", psz_mode);
         p_mode = GetFilterMode("blend");
     }
-    if (strcmp(p_mode->psz_mode, p_mode))
+    if (strcmp(p_mode->psz_mode, psz_mode))
         msg_Dbg(filter, "using %s deinterlacing mode", p_mode->psz_mode);
 
     for (UINT type = 0; type < processorCaps.RateConversionCapsCount; ++type)
diff --git a/modules/video_output/win32/dxva2_deinterlace.c b/modules/video_output/win32/dxva2_deinterlace.c
index 3995b333c5..b9eef5bef1 100644
--- a/modules/video_output/win32/dxva2_deinterlace.c
+++ b/modules/video_output/win32/dxva2_deinterlace.c
@@ -310,7 +310,7 @@ static int Open(vlc_object_t *obj)
         msg_Dbg(filter, "unknown mode %s, trying blend", psz_mode);
         p_mode = GetFilterMode("blend");
     }
-    if (strcmp(p_mode->psz_mode, p_mode))
+    if (strcmp(p_mode->psz_mode, psz_mode))
         msg_Dbg(filter, "using %s deinterlacing mode", p_mode->psz_mode);
 
     DXVA2_VideoProcessorCaps caps, best_caps;



More information about the vlc-commits mailing list