[vlc-commits] es_out: deobfuscate expression (fixes #19635)
Rémi Denis-Courmont
git at videolan.org
Tue Feb 13 18:16:19 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Feb 13 19:07:54 2018 +0200| [581bd93a578720599b29c6c1173b4e23575f26a2] | committer: Rémi Denis-Courmont
es_out: deobfuscate expression (fixes #19635)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=581bd93a578720599b29c6c1173b4e23575f26a2
---
src/input/es_out.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index d25020f1dd..3734e6d5cd 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1259,8 +1259,9 @@ static void EsOutProgramMeta( es_out_t *out, int i_group, const vlc_meta_t *p_me
{
const char *psz_current_title = vlc_meta_Get( p_pgrm->p_meta, vlc_meta_Title );
const char *psz_new_title = vlc_meta_Get( p_meta, vlc_meta_Title );
- if( !psz_current_title != !psz_new_title ||
- ( psz_new_title && psz_new_title && strcmp(psz_new_title, psz_current_title)) )
+ if( (psz_current_title != NULL && psz_new_title != NULL)
+ ? strcmp(psz_new_title, psz_current_title)
+ : (psz_current_title != psz_new_title) )
{
/* Remove old entries */
char *psz_oldinfokey = EsOutProgramGetMetaName( p_pgrm );
More information about the vlc-commits
mailing list