[vlc-commits] es_out: remove useless pointer check

Thomas Guillem git at videolan.org
Fri Feb 28 20:46:53 CET 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 28 14:03:47 2020 +0100| [5b990f5f401c2bdd061efb16153b7273342161cb] | committer: Thomas Guillem

es_out: remove useless pointer check

p_esprops can't be NULL here.

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

 src/input/es_out.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index fe4922b512..aa80122f97 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2452,7 +2452,7 @@ static void EsOutSelect( es_out_t *out, es_out_id_t *es, bool b_force )
             policy = ES_OUT_ES_POLICY_EXCLUSIVE;
     }
 
-    bool b_auto_unselect = p_esprops && p_sys->i_mode == ES_OUT_MODE_AUTO &&
+    bool b_auto_unselect = p_sys->i_mode == ES_OUT_MODE_AUTO &&
                            policy == ES_OUT_ES_POLICY_EXCLUSIVE &&
                            p_esprops->p_main_es && p_esprops->p_main_es != es;
 



More information about the vlc-commits mailing list