]> git.sesse.net Git - vlc/blobdiff - src/video_output/interlacing.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / src / video_output / interlacing.c
index c25c08bbd83639e9a7b319b450e8c7a6069ddb8b..f3e6609935072cc63385891e8d80c9cfc774bc7e 100644 (file)
@@ -43,11 +43,11 @@ static const char *deinterlace_modes[] = {
     //"discard",
     "blend",
     //"mean",
-    //"bob",
-    //"linear",
+    "bob",
+    "linear",
     "x",
-    //"yadif",
-    //"yadif2x",
+    "yadif",
+    "yadif2x",
     NULL
 };
 static bool DeinterlaceIsModeValid(const char *mode)
@@ -181,6 +181,7 @@ static int DeinterlaceCallback( vlc_object_t *p_this, char const *psz_cmd,
 
     /* */
     char *psz_old = var_CreateGetString( p_vout, "sout-deinterlace-mode" );
+    var_SetString( p_vout, "sout-deinterlace-mode", psz_mode );
 
     msg_Dbg( p_vout, "deinterlace %d, mode %s, is_needed %d", i_deinterlace, psz_mode, is_needed );
     if( i_deinterlace == 0 || ( i_deinterlace == -1 && !is_needed ) )