- {
- msg_Err( p_demux, "Out of memory" );
- free( (void *)buf16 );
- return NULL;
- }
-
- conv = vlc_iconv_open( "UTF-8", "UTF-16LE" );
- if( conv == (vlc_iconv_t)-1 )
- {
- msg_Err( p_demux, "iconv_open failed" );
- free( (void *)buf16 );
- free( (void *)buf8 );
- return NULL;
- }
-
- p_buf8 = &buf8[ 0 ];
- p_buf16 = (char *)&buf16[ 0 ];
-
- if( vlc_iconv( conv, &p_buf16, &buf16_size, &p_buf8, &buf8_size ) < 0 )