[vlc-devel] [PATCH 03/10] video_filter:deinterlace: make sure we use the same setup for auto and X
Steve Lhomme
robux4 at videolabs.io
Mon Jun 26 19:20:12 CEST 2017
---
modules/video_filter/deinterlace/deinterlace.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/modules/video_filter/deinterlace/deinterlace.c b/modules/video_filter/deinterlace/deinterlace.c
index 2be5422c3a..57df63c813 100644
--- a/modules/video_filter/deinterlace/deinterlace.c
+++ b/modules/video_filter/deinterlace/deinterlace.c
@@ -155,7 +155,7 @@ static void SetFilterMethod( filter_t *p_filter, const char *mode, bool pack )
p_sys->b_half_height = false;
p_sys->b_use_frame_history = false;
- if ( !strcmp( mode, "auto" ) )
+ if ( !strcmp( mode, "auto" ) || !strcmp( mode, "x" ) )
{
p_sys->i_mode = DEINTERLACE_X;
}
@@ -206,10 +206,6 @@ static void SetFilterMethod( filter_t *p_filter, const char *mode, bool pack )
" for high depth format", mode );
return SetFilterMethod(p_filter, "auto", pack);
}
- else if( !strcmp( mode, "x" ) )
- {
- p_sys->i_mode = DEINTERLACE_X;
- }
else if( !strcmp( mode, "phosphor" ) )
{
p_sys->i_mode = DEINTERLACE_PHOSPHOR;
--
2.12.1
More information about the vlc-devel
mailing list