]> git.sesse.net Git - vlc/commitdiff
Ensure that chapter names are utf8 (I failed to find information about
authorLaurent Aimar <fenrir@videolan.org>
Wed, 30 May 2007 19:39:23 +0000 (19:39 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Wed, 30 May 2007 19:39:23 +0000 (19:39 +0000)
chapter encoding, I fear the worst)

modules/demux/mp4/mp4.c

index 17fec046dd4163315c45d39ed7012851a54612dc..9cc403e8be9330a77f853804bfa0888a5913e82b 100644 (file)
@@ -532,6 +532,7 @@ static int Open( vlc_object_t * p_this )
             seekpoint_t *s = vlc_seekpoint_New();
 
             s->psz_name = strdup( p_chpl->data.p_chpl->chapter[i].psz_name );
+            EnsureUTF8( s->psz_name );
             s->i_time_offset = p_chpl->data.p_chpl->chapter[i].i_start / 10;
             TAB_APPEND( p_sys->p_title->i_seekpoint, p_sys->p_title->seekpoint, s );
         }