[vlc-commits] video_output/interlacing: remove dead code

Steve Lhomme git at videolan.org
Mon Nov 23 14:45:56 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Nov 12 09:55:35 2020 +0100| [582efd4bdc1a83d940f9cdeaabdcd6e519878777] | committer: Steve Lhomme

video_output/interlacing: remove dead code

The has_deint value can never be true at this point.

This code is even dead in 3.0 as DeinterlaceCallback was not called in the init
either.

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

 src/video_output/interlacing.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/video_output/interlacing.c b/src/video_output/interlacing.c
index 0f9a16956f..da2f0ec62c 100644
--- a/src/video_output/interlacing.c
+++ b/src/video_output/interlacing.c
@@ -137,16 +137,6 @@ void vout_InitInterlacingSupport(vout_thread_t *vout, vout_thread_private_t *sys
     var_Create(vout, "deinterlace-needed", VLC_VAR_BOOL);
     var_AddCallback(vout, "deinterlace-needed", DeinterlaceCallback, NULL);
 
-    /* Override the initial value from filters if present */
-    char *filter_mode = NULL;
-    if (sys->interlacing.has_deint)
-        filter_mode = var_CreateGetNonEmptyString(vout, "sout-deinterlace-mode");
-    if (filter_mode) {
-        deinterlace_state = 1;
-        free(deinterlace_mode);
-        deinterlace_mode = filter_mode;
-    }
-
     /* */
     val.psz_string = deinterlace_mode ? deinterlace_mode : optm->orig.psz;
     var_Change(vout, "deinterlace-mode", VLC_VAR_SETVALUE, val);



More information about the vlc-commits mailing list