changeset 35146:c17eeb84bec7

vo corevideo: Use stringWithUTF8String The API stringWithCString is deprecated since 10.4 . Patch by Zongyao Qu >zongyao.qu gmail.com<
author al
date Thu, 11 Oct 2012 16:39:30 +0000
parents 101b64e62f36
children 4d8d26a9d66a
files libvo/vo_corevideo.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_corevideo.m	Tue Oct 09 10:23:53 2012 +0000
+++ b/libvo/vo_corevideo.m	Thu Oct 11 16:39:30 2012 +0000
@@ -152,7 +152,7 @@
 		//config OpenGL View
 		[mpGLView config:d_width:d_height:flags];
 		[mpGLView reshape];
-		[[mpGLView window] setTitle:[NSString stringWithCString:vo_wintitle ? vo_wintitle : title]];
+		[[mpGLView window] setTitle:[NSString stringWithUTF8String:vo_wintitle ? vo_wintitle : title]];
 	}
 	else
 	{
@@ -192,7 +192,7 @@
 		}
 
 		//connect to mplayerosx
-		mplayerosxProxy=[NSConnection rootProxyForConnectionWithRegisteredName:[NSString stringWithCString:buffer_name] host:nil];
+		mplayerosxProxy=[NSConnection rootProxyForConnectionWithRegisteredName:[NSString stringWithUTF8String:buffer_name] host:nil];
 		if ([mplayerosxProxy conformsToProtocol:@protocol(MPlayerOSXVOProto)]) {
 			[mplayerosxProxy setProtocolForProxy:@protocol(MPlayerOSXVOProto)];
 			mplayerosxProto = (id <MPlayerOSXVOProto>)mplayerosxProxy;