[vlc-commits] decoder: cosmetic change, do not special case flushing

Rémi Denis-Courmont git at videolan.org
Mon Apr 23 18:00:48 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 23 18:56:52 2012 +0300| [53ab1eafaf5e6a017ce149e2bf959c76591b9add] | committer: Rémi Denis-Courmont

decoder: cosmetic change, do not special case flushing

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

 src/input/decoder.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index bc5652d..24c0b20 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -1017,8 +1017,10 @@ static void DecoderWaitUnblock( decoder_t *p_dec, bool *pb_reject )
 
     vlc_assert_locked( &p_owner->lock );
 
-    while( !p_owner->b_flushing )
+    for( ;; )
     {
+        if( p_owner->b_flushing )
+            break;
         if( p_owner->b_paused )
         {
             if( p_owner->b_buffering && !p_owner->buffer.b_full )



More information about the vlc-commits mailing list