# HG changeset patch # User nicodvb # Date 1162033157 0 # Node ID e7474c33f07253306dca2a297136486cacbc0c1e # Parent 0398b9cbd66d0c9eac73732d8163fe3292b0fd18 readability cosmetics diff -r 0398b9cbd66d -r e7474c33f072 libmpdemux/demux_ts.c --- a/libmpdemux/demux_ts.c Sat Oct 28 10:52:12 2006 +0000 +++ b/libmpdemux/demux_ts.c Sat Oct 28 10:59:17 2006 +0000 @@ -2882,9 +2882,7 @@ tss->is_synced |= es->is_synced || rap_flag; tss->payload_size = es->payload_size; - if(is_audio) - lang = pid_lang_from_pmt(priv, es->pid); - if(lang != NULL) + if(is_audio && (lang = pid_lang_from_pmt(priv, es->pid))) { memcpy(es->lang, lang, 3); es->lang[3] = 0;