[vlc-devel] commit: Fixed an uninitiliazed value regarding deinterlacing state. ( Laurent Aimar )

git version control git at videolan.org
Sun Nov 8 19:14:51 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Nov  8 18:58:55 2009 +0100| [b0b94a1c548b2c216e3d6682d635726ca1cf4b87] | committer: Laurent Aimar 

Fixed an uninitiliazed value regarding deinterlacing state.

Thanks to ivoire for noticing it.

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

 src/video_output/video_output.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index c5aa29b..0a0e97b 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -2060,9 +2060,9 @@ static void DeinterlaceEnable( vout_thread_t *p_vout )
     /* */
     bool is_needed;
     if( i_deinterlace == -2 )
-        is_needed = true;
+        p_vout->p->b_picture_interlaced = true;
     else if( i_deinterlace == -3 )
-        is_needed = false;
+        p_vout->p->b_picture_interlaced = false;
     if( i_deinterlace < 0 )
         i_deinterlace = -1;
 
@@ -2071,7 +2071,7 @@ static void DeinterlaceEnable( vout_thread_t *p_vout )
     /* */
     val.psz_string = psz_deinterlace ? psz_deinterlace : p_optm->orig.psz;
     var_Change( p_vout, "deinterlace-mode", VLC_VAR_SETVALUE, &val, NULL );
-    val.b_bool = is_needed;
+    val.b_bool = p_vout->p->b_picture_interlaced;
     var_Change( p_vout, "deinterlace-needed", VLC_VAR_SETVALUE, &val, NULL );
 
     var_SetInteger( p_vout, "deinterlace", i_deinterlace );




More information about the vlc-devel mailing list