]> git.sesse.net Git - vlc/commitdiff
es_out: remove tautology
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 17 Mar 2015 19:38:31 +0000 (21:38 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 19 Mar 2015 17:56:09 +0000 (19:56 +0200)
es->p_dec is obviously non-NULL when the loop starts, and the loop
cannot change the value.

src/input/es_out.c

index 3ea91f0a89233ff46d5cb7e32c96e83e38b5cf7e..14464769e726404fb4c2d820433f333cd1332eea 100644 (file)
@@ -2034,7 +2034,7 @@ static void EsOutDel( es_out_t *out, es_out_id_t *es )
     /* We don't try to reselect */
     if( es->p_dec )
     {
-        while( vlc_object_alive(p_sys->p_input) && !p_sys->b_buffering && es->p_dec )
+        while( vlc_object_alive(p_sys->p_input) && !p_sys->b_buffering )
         {
             if( input_DecoderIsEmpty( es->p_dec ) &&
                 ( !es->p_dec_record || input_DecoderIsEmpty( es->p_dec_record ) ))