Commit b79bc615 authored by Aleksandr Matuzok's avatar Aleksandr Matuzok Committed by Felix Paul Kühne

Unicode symbols showing fixed on VLCMediaTracksInformationLanguage and...

Unicode symbols showing fixed on VLCMediaTracksInformationLanguage and VLCMediaTracksInformationDescription.
parent fbaf1081
......@@ -551,10 +551,10 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
VLCMediaTracksInformationBitrate,
nil];
if (tracksInfo[i]->psz_language)
dictionary[VLCMediaTracksInformationLanguage] = [NSString stringWithFormat:@"%s",tracksInfo[i]->psz_language];
dictionary[VLCMediaTracksInformationLanguage] = [NSString stringWithUTF8String:tracksInfo[i]->psz_language];
if (tracksInfo[i]->psz_description)
dictionary[VLCMediaTracksInformationDescription] = [NSString stringWithFormat:@"%s",tracksInfo[i]->psz_description];
dictionary[VLCMediaTracksInformationDescription] = [NSString stringWithUTF8String:tracksInfo[i]->psz_description];
NSString *type;
switch (tracksInfo[i]->i_type) {
......@@ -575,7 +575,7 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
case libvlc_track_text:
type = VLCMediaTracksInformationTypeText;
if (tracksInfo[i]->subtitle->psz_encoding)
dictionary[VLCMediaTracksInformationTextEncoding] = [NSString stringWithFormat:@"%s", tracksInfo[i]->subtitle->psz_encoding];
dictionary[VLCMediaTracksInformationTextEncoding] = [NSString stringWithUTF8String: tracksInfo[i]->subtitle->psz_encoding];
break;
case libvlc_track_unknown:
default:
......
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