[vlc-devel] [PATCH 5/7] libvlc_video_set_deinterlace should use "auto" deinterlace, not "on"

Jean-Baptiste Kempf jb at videolan.org
Sat Jan 17 05:39:06 CET 2015


No.
This breaks streams that are not detected as interlaced.

On 16 Jan, Jean-Paul Saman wrote :
> 

> From 939af65ad3f623ece5adb3bfa7ec73aec55ee4f7 Mon Sep 17 00:00:00 2001
> From: Adam Leggett <adamvleggett at gmail.com>
> Date: Tue, 11 Nov 2014 15:18:41 -0500
> Subject: [PATCH 5/7] libvlc_video_set_deinterlace should use "auto"
>  deinterlace, not "on"
> 
> Signed-off-by: Jean-Paul Saman <jpsaman at videolan.org>
> ---
>  lib/video.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/video.c b/lib/video.c
> index 4abe36e..60dbfab 100644
> --- a/lib/video.c
> +++ b/lib/video.c
> @@ -584,7 +584,7 @@ void libvlc_video_set_deinterlace( libvlc_media_player_t *p_mi,
>      if (*psz_mode)
>      {
>          var_SetString (p_mi, "deinterlace-mode", psz_mode);
> -        var_SetInteger (p_mi, "deinterlace", 1);
> +        var_SetInteger (p_mi, "deinterlace", -1);
>      }
>      else
>          var_SetInteger (p_mi, "deinterlace", 0);
> @@ -598,7 +598,7 @@ void libvlc_video_set_deinterlace( libvlc_media_player_t *p_mi,
>          if (*psz_mode)
>          {
>              var_SetString (p_vout, "deinterlace-mode", psz_mode);
> -            var_SetInteger (p_vout, "deinterlace", 1);
> +            var_SetInteger (p_vout, "deinterlace", -1);
>          }
>          else
>              var_SetInteger (p_vout, "deinterlace", 0);
> -- 
> 1.9.3
> 

> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


-- 
With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list