vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Dec 20 
15:18:12 2017 +0100| [34e4a418daaee7f2766559e2a73ccea0322f02f7] | committer: 
Francois Cartegnie

codec: ttml: fallback on non namespaced id

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

 modules/codec/ttml/substtml.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/codec/ttml/substtml.c b/modules/codec/ttml/substtml.c
index 24f85fda24..0b04b916df 100644
--- a/modules/codec/ttml/substtml.c
+++ b/modules/codec/ttml/substtml.c
@@ -249,6 +249,8 @@ static tt_node_t * FindNode( tt_node_t *p_node, const char 
*psz_nodename,
         if( psz_id != NULL )
         {
             char *psz = vlc_dictionary_value_for_key( &p_node->attr_dict, 
"xml:id" );
+            if( !psz ) /* People can't do xml properly */
+                psz = vlc_dictionary_value_for_key( &p_node->attr_dict, "id" );
             if( psz && !strcmp( psz, psz_id ) )
                 return p_node;
         }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to