Commit 60421fb8 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

Fall back to plain C with default C character encoding when UTF8 fails.

now you can see at least something with those SAP announces with Latin char encoding.
parent df00502f
......@@ -666,6 +666,9 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
vlc_mutex_lock( &p_playlist->object_lock );
o_value = [NSString stringWithUTF8String:
p_playlist->pp_items[i_row]->psz_name];
if( o_value == NULL )
o_value = [NSString stringWithCString:
p_playlist->pp_items[i_row]->psz_name];
vlc_mutex_unlock( &p_playlist->object_lock );
}
else if( [[o_tc identifier] isEqualToString:@"2"] )
......@@ -673,6 +676,9 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
vlc_mutex_lock( &p_playlist->object_lock );
o_value = [NSString stringWithUTF8String:
playlist_GetInfo(p_playlist, i_row ,_("General"),_("Author") )];
if( o_value == NULL )
o_value = [NSString stringWithCString:
playlist_GetInfo(p_playlist, i_row ,_("General"),_("Author") )];
vlc_mutex_unlock( &p_playlist->object_lock );
}
else if( [[o_tc identifier] isEqualToString:@"3"] )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment