Commit df00502f authored by Benjamin Pracht's avatar Benjamin Pracht

Works around an issue with some playlist items added by the sap interface :...

Works around an issue with some playlist items added by the sap interface : since they aren't coded in UTF8, a blank string is printed. 

This doesn't correct this issue, but at least, it doesn't prevent the item proprieties window from opening anymore.


parent ef5210f8
......@@ -66,8 +66,20 @@
{
/*fill uri / title / author info */
int i_item = [o_vlc_playlist selectedPlaylistItem];
[o_uri_txt setStringValue:[NSString stringWithUTF8String: p_playlist->pp_items[i_item]->psz_uri]];
[o_title_txt setStringValue:[NSString stringWithUTF8String: p_playlist->pp_items[i_item]->psz_name]];
[o_uri_txt setStringValue:
([NSString stringWithUTF8String:p_playlist->
pp_items[i_item]->psz_uri] == nil ) ?
@"" :
[NSString stringWithUTF8String:p_playlist->
pp_items[i_item]->psz_uri]];
[o_title_txt setStringValue:
([NSString stringWithUTF8String:p_playlist->
pp_items[i_item]->psz_name] == nil ) ?
@"" :
[NSString stringWithUTF8String:p_playlist->
pp_items[i_item]->psz_name]];
[o_author_txt setStringValue:[NSString stringWithUTF8String: playlist_GetInfo(p_playlist, i_item ,_("General"),_("Author") )]];
[[VLCInfoTreeItem rootItem] refresh];
......
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