[vlc-devel] commit: Fix inverted logic introduced in 048e2d9104c8f6d948400e23ba9293d5efb02962 ( Rémi Duraffort )

git version control git at videolan.org
Thu Oct 22 13:05:47 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Thu Oct 22 12:49:59 2009 +0200| [eee7930a747483c90878bac9d8b1a8100571aaf9] | committer: Rémi Duraffort 

Fix inverted logic introduced in 048e2d9104c8f6d948400e23ba9293d5efb02962

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

 modules/video_filter/puzzle.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/puzzle.c b/modules/video_filter/puzzle.c
index 3cb970b..d07cb69 100644
--- a/modules/video_filter/puzzle.c
+++ b/modules/video_filter/puzzle.c
@@ -405,7 +405,7 @@ static bool IsValid( filter_sys_t *p_sys )
 {
     const int i_count = p_sys->i_cols * p_sys->i_rows;
 
-    if( p_sys->b_blackslot )
+    if( !p_sys->b_blackslot )
         return true;
 
     int d = 0;
@@ -447,7 +447,7 @@ static void Shuffle( filter_sys_t *p_sys )
         }
         p_sys->b_finished = IsFinished( p_sys );
 
-    } while( p_sys->b_finished || IsValid( p_sys ) );
+    } while( p_sys->b_finished || !IsValid( p_sys ) );
 
     if( p_sys->b_blackslot )
     {




More information about the vlc-devel mailing list