# HG changeset patch # User al # Date 1349973570 0 # Node ID c17eeb84bec7cdbd7579ffe2ab32f643e01ecf9d # Parent 101b64e62f36fbd94abebb1efecfec306aaed225 vo corevideo: Use stringWithUTF8String The API stringWithCString is deprecated since 10.4 . Patch by Zongyao Qu >zongyao.qu gmail.com< diff -r 101b64e62f36 -r c17eeb84bec7 libvo/vo_corevideo.m --- 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 )mplayerosxProxy;