vlc/vlc-3.0 | branch: master | Francois Cartegnie <[email protected]> | Wed Dec 
20 15:18:12 2017 +0100| [7581e1afcd87119eec934ea6c27af0f9c93b2ac4] | committer: 
Francois Cartegnie

codec: ttml: fallback on non namespaced id

(cherry picked from commit 34e4a418daaee7f2766559e2a73ccea0322f02f7)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7581e1afcd87119eec934ea6c27af0f9c93b2ac4
---

 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 118dc76134..77b4546081 100644
--- a/modules/codec/ttml/substtml.c
+++ b/modules/codec/ttml/substtml.c
@@ -239,6 +239,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