[vlc-devel] [PATCH 07/19] ttml codec: change variable name for specificity

Stanislas Plessia stplessia at gmail.com
Mon Aug 29 16:01:05 CEST 2016


---
 modules/codec/substtml.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/modules/codec/substtml.c b/modules/codec/substtml.c
index fb9fd3f..78c0faa 100644
--- a/modules/codec/substtml.c
+++ b/modules/codec/substtml.c
@@ -428,25 +428,25 @@ static void ParseTTMLStyles( decoder_t* p_dec )
         vlc_stream_Delete( p_stream );
         return ;
     }
-    const char* psz_name;
-    int i_type = xml_ReaderNextNode( p_reader, &psz_name );
+    const char* psz_node_name;
+    int i_type = xml_ReaderNextNode( p_reader, &psz_node_name );
 
-    if ( i_type == XML_READER_STARTELEM && ( !strcasecmp( psz_name, "head" ) || !strcasecmp( psz_name, "tt:head" ) ) )
+    if ( i_type == XML_READER_STARTELEM && ( !strcasecmp( psz_node_name, "head" ) || !strcasecmp( psz_node_name, "tt:head" ) ) )
     {
         do
         {
-            i_type = xml_ReaderNextNode( p_reader, &psz_name );
-            if ( i_type == XML_READER_STARTELEM && ( !strcasecmp( "styling", psz_name ) ||
-                                                     !strcasecmp( "tt:styling", psz_name ) ) )
+            i_type = xml_ReaderNextNode( p_reader, &psz_node_name );
+            if ( i_type == XML_READER_STARTELEM && ( !strcasecmp( "styling", psz_node_name ) ||
+                                                     !strcasecmp( "tt:styling", psz_node_name ) ) )
             {
-                i_type = xml_ReaderNextNode( p_reader, &psz_name );
-                while ( i_type != XML_READER_ENDELEM || ( strcasecmp( psz_name, "styling" ) && strcasecmp( psz_name, "tt:styling" ) ) )
+                i_type = xml_ReaderNextNode( p_reader, &psz_node_name );
+                while ( i_type != XML_READER_ENDELEM || ( strcasecmp( psz_node_name, "styling" ) && strcasecmp( psz_node_name, "tt:styling" ) ) )
                 {
-                    ParseTTMLStyle( p_dec, p_reader, psz_name );
-                    i_type = xml_ReaderNextNode( p_reader, &psz_name );
+                    ParseTTMLStyle( p_dec, p_reader, psz_node_name );
+                    i_type = xml_ReaderNextNode( p_reader, &psz_node_name );
                 }
             }
-        } while ( i_type != XML_READER_ENDELEM || ( strcasecmp( psz_name, "head" ) && strcasecmp( psz_name, "tt:head" ) ) );
+        } while ( i_type != XML_READER_ENDELEM || ( strcasecmp( psz_node_name, "head" ) && strcasecmp( psz_node_name, "tt:head" ) ) );
     }
     xml_ReaderDelete( p_reader );
     vlc_stream_Delete( p_stream );
-- 
2.7.4



More information about the vlc-devel mailing list