summaryrefslogtreecommitdiff
path: root/ext/ttml
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-05-26 17:55:44 +0200
committerEdward Hervey <bilboed@bilboed.com>2017-05-26 17:55:44 +0200
commit417c70805bb0de9218681b2b1a4590114935fe46 (patch)
tree58490f72f18ab0a8f8290f7e6f4f495194847fd2 /ext/ttml
parent304a628de777ed0a180e8a23dc0e689ca9b0e24c (diff)
downloadgstreamer-plugins-bad-417c70805bb0de9218681b2b1a4590114935fe46.tar.gz
ttml: Simplify code
n2 can never be NULL since: * it's in a "while (n1 && n2)" block * and it's not modified before CID #1405868
Diffstat (limited to 'ext/ttml')
-rw-r--r--ext/ttml/ttmlparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ttml/ttmlparse.c b/ext/ttml/ttmlparse.c
index 2759b69e5..a609b981c 100644
--- a/ext/ttml/ttmlparse.c
+++ b/ext/ttml/ttmlparse.c
@@ -1886,7 +1886,7 @@ ttml_join_region_tree_inline_elements (GNode * tree)
n2 = n1->next;
} else {
n1 = n2;
- n2 = n2 ? n2->next : NULL;
+ n2 = n2->next;
}
}
}