[vlc-devel] commit: Updated libvlc_video_set_deinterlace. (Laurent Aimar )

git version control git at videolan.org
Mon Oct 5 23:52:26 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Oct  5 23:49:09 2009 +0200| [156883de4455d19a710b922bdd08346ef9f9a911] | committer: Laurent Aimar 

Updated libvlc_video_set_deinterlace.

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

 src/control/video.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/control/video.c b/src/control/video.c
index 18b14a0..30a3f46 100644
--- a/src/control/video.c
+++ b/src/control/video.c
@@ -624,10 +624,12 @@ void libvlc_video_set_deinterlace( libvlc_media_player_t *p_mi, int b_enable,
         /* be sure that the filter name given is supported */
         if( !strcmp(psz_mode, "blend")   || !strcmp(psz_mode, "bob")
          || !strcmp(psz_mode, "discard") || !strcmp(psz_mode, "linear")
-         || !strcmp(psz_mode, "mean")    || !strcmp(psz_mode, "x") )
+         || !strcmp(psz_mode, "mean")    || !strcmp(psz_mode, "x")
+         || !strcmp(psz_mode, "yadif")   || !strcmp(psz_mode, "yadif2x") )
         {
             /* set deinterlace filter chosen */
             var_SetString( p_vout, "deinterlace-mode", psz_mode );
+            var_SetInteger( p_vout, "deinterlace", 1 );
         }
         else
         {
@@ -638,7 +640,7 @@ void libvlc_video_set_deinterlace( libvlc_media_player_t *p_mi, int b_enable,
     else
     {
         /* disable deinterlace filter */
-        var_SetString( p_vout, "deinterlace-mode", "" );
+        var_SetInteger( p_vout, "deinterlace", 0 );
     }
 
     vlc_object_release( p_vout );




More information about the vlc-devel mailing list