vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Fri Apr  7 
11:06:26 2017 +0200| [13b9b836524d20ee3b9bdac8eceb1a0d79437257] | committer: 
Hugo Beauzée-Luyssen

subsdec: Use the proper name decoration

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

 modules/codec/subsdec.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/codec/subsdec.c b/modules/codec/subsdec.c
index d48b2ce..994a208 100644
--- a/modules/codec/subsdec.c
+++ b/modules/codec/subsdec.c
@@ -485,11 +485,11 @@ static bool AppendString( text_segment_t* p_segment, 
const char* psz_str )
     return true;
 }
 
-static char* ConsumeAttribute( const char** ppsz_subtitle, char** 
psz_attribute_value )
+static char* ConsumeAttribute( const char** ppsz_subtitle, char** 
ppsz_attribute_value )
 {
     const char* psz_subtitle = *ppsz_subtitle;
     char* psz_attribute_name;
-    *psz_attribute_value = NULL;
+    *ppsz_attribute_value = NULL;
 
     while (*psz_subtitle == ' ')
         psz_subtitle++;
@@ -544,13 +544,13 @@ static char* ConsumeAttribute( const char** 
ppsz_subtitle, char** psz_attribute_
     }
     if ( attr_len == 0 )
         return psz_attribute_name;
-    if ( unlikely( !( *psz_attribute_value = malloc( attr_len + 1 ) ) ) )
+    if ( unlikely( !( *ppsz_attribute_value = malloc( attr_len + 1 ) ) ) )
     {
         free( psz_attribute_name );
         return NULL;
     }
-    strncpy( *psz_attribute_value, psz_subtitle - attr_len, attr_len );
-    (*psz_attribute_value)[attr_len] = 0;
+    strncpy( *ppsz_attribute_value, psz_subtitle - attr_len, attr_len );
+    (*ppsz_attribute_value)[attr_len] = 0;
     // Finally, skip over the final delimiter
     if (delimiter != 0 && *psz_subtitle)
         psz_subtitle++;

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

Reply via email to