[vlc-devel] [PATCH 3/6] dxva2_deinterlace: replace an assert by a debug warning
Steve Lhomme
robux4 at videolabs.io
Tue Aug 1 10:25:44 CEST 2017
Might fix #18599
---
modules/video_output/win32/dxva2_deinterlace.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/win32/dxva2_deinterlace.c b/modules/video_output/win32/dxva2_deinterlace.c
index 0644eca3b5..2d0242564d 100644
--- a/modules/video_output/win32/dxva2_deinterlace.c
+++ b/modules/video_output/win32/dxva2_deinterlace.c
@@ -358,7 +358,8 @@ static int Open(vlc_object_t *obj)
sys->context.settings = p_mode->settings;
sys->context.settings.b_use_frame_history = best_caps.NumBackwardRefSamples != 0 ||
best_caps.NumForwardRefSamples != 0;
- assert(sys->context.settings.b_use_frame_history == p_mode->settings.b_use_frame_history);
+ if (sys->context.settings.b_use_frame_history != p_mode->settings.b_use_frame_history)
+ msg_Dbg( filter, "deinterlacing not using frame history as requested");
if (sys->context.settings.b_double_rate)
sys->context.pf_render_ordered = RenderPic;
else
--
2.12.1
More information about the vlc-devel
mailing list