ttmlparse: Replace repeated warning code with a function.
authorChris Bass <floobleflam@gmail.com>
Tue, 25 Apr 2017 09:17:49 +0000 (10:17 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 25 Apr 2017 19:18:53 +0000 (22:18 +0300)
commit81157e5168e9890c879639b002d060bce4cc4ec7
tree530b88a46ffa40269416518d81d8ab34edcdb29b
parent8b19cccfc516800accb73dd439aa0d133826a413
ttmlparse: Replace repeated warning code with a function.

Encapsulates in a function the code that warns of an illegally
positioned element, rather than repeating the same code multiple times.
Also frees a string allocated by ttml_get_element_type_string, which was
previously being leaked.

https://bugzilla.gnome.org/show_bug.cgi?id=781725
ext/ttml/ttmlparse.c