[vlc-commits] es_out: remove tautology check

Rémi Denis-Courmont git at videolan.org
Fri Mar 15 02:28:11 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar 14 11:38:55 2019 +0200| [99faf4495b550953ef278b64d210eefe184a283e] | committer: Rémi Denis-Courmont

es_out: remove tautology check

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

 src/input/es_out.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index 8f773db4d8..3b82ee2b5d 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2942,15 +2942,9 @@ static int EsOutVaControlLocked( es_out_t *out, int i_query, va_list args )
 
         vlc_object_t    **pp_decoder = va_arg( args, vlc_object_t ** );
         if( p_es->p_dec )
-        {
-            if( pp_decoder )
-                *pp_decoder = vlc_object_hold( p_es->p_dec );
-        }
+            *pp_decoder = vlc_object_hold( p_es->p_dec );
         else
-        {
-            if( pp_decoder )
-                *pp_decoder = NULL;
-        }
+            *pp_decoder = NULL;
         return VLC_SUCCESS;
     }
 



More information about the vlc-commits mailing list