[vlc-commits] ts mux: use NULL for nul pointer comparison

Rémi Denis-Courmont git at videolan.org
Tue Nov 20 21:34:20 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 20 22:31:08 2018 +0200| [e76dbc830ae08b14d51fb5e96a34cfa95eb7ea8c] | committer: Rémi Denis-Courmont

ts mux: use NULL for nul pointer comparison

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

 modules/mux/mpeg/ts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 95b7100fab..35a6dd8f56 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -795,7 +795,7 @@ static int ChangeKeyCallback( vlc_object_t *p_this, char const *psz_cmd,
     int ret;
 
     vlc_mutex_lock(&p_sys->csa_lock);
-    ret = csa_SetCW(p_this, p_sys->csa, newval.psz_string, !!(intptr_t)p_data);
+    ret = csa_SetCW(p_this, p_sys->csa, newval.psz_string, p_data != NULL);
     vlc_mutex_unlock(&p_sys->csa_lock);
 
     return ret;



More information about the vlc-commits mailing list