Commit f0889f4d authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

MacOSX/Framework/VLCMediaDiscoverer.m: Use UTF8String instead of cString.

parent a3633b83
...@@ -53,7 +53,7 @@ static NSArray * availableMediaDiscoverer = nil; ...@@ -53,7 +53,7 @@ static NSArray * availableMediaDiscoverer = nil;
localizedName = nil; localizedName = nil;
discoveredMedia = nil; discoveredMedia = nil;
mdis = libvlc_media_discoverer_new_from_name( [VLCLibrary sharedInstance], mdis = libvlc_media_discoverer_new_from_name( [VLCLibrary sharedInstance],
[aServiceName cString], [aServiceName UTF8String],
&ex ); &ex );
quit_on_exception( &ex ); quit_on_exception( &ex );
} }
...@@ -96,7 +96,7 @@ static NSArray * availableMediaDiscoverer = nil; ...@@ -96,7 +96,7 @@ static NSArray * availableMediaDiscoverer = nil;
if (name) if (name)
{ {
aString = [NSString stringWithCString:name encoding:NSUTF8StringEncoding]; aString = [NSString stringWithUTF8String:name];
free( name ); free( name );
} }
if( aString ) if( aString )
......
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