]> git.sesse.net Git - vlc/commitdiff
Put video in black slot when puzzle is solved
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 11 Nov 2006 00:20:30 +0000 (00:20 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 11 Nov 2006 00:20:30 +0000 (00:20 +0000)
modules/video_filter/puzzle.c

index d14dbac5eea148f8b906679516a56bb4d9a9e0d1..f2e9e8dcc510f748d851552b7cd6ee11f507ba67 100644 (file)
@@ -120,7 +120,7 @@ static vlc_bool_t finished( vout_sys_t *p_sys )
 }
 static vlc_bool_t is_valid( vout_sys_t *p_sys )
 {
-    int i, s;
+    int i, s=0;
     if( p_sys->b_blackslot == VLC_FALSE ) return VLC_TRUE;
     for( i = 0; i < p_sys->i_cols * p_sys->i_rows; i++ )
     {
@@ -340,6 +340,7 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
             i_last_row *= p_in->i_lines / i_rows;
 
             if( p_vout->p_sys->b_blackslot == VLC_TRUE
+                && p_vout->p_sys->b_finished == VLC_FALSE
                 && i == p_vout->p_sys->i_selected )
             {
                 uint8_t color = ( i_plane == Y_PLANE ? 0x0 : 0x80 );