[MPlayer-cvslog] r35240 - trunk/libvo/vo_corevideo.m
al
subversion at mplayerhq.hu
Thu Oct 11 18:39:31 CEST 2012
Author: al
Date: Thu Oct 11 18:39:30 2012
New Revision: 35240
Log:
vo corevideo: Use stringWithUTF8String
The API stringWithCString is deprecated since 10.4 .
Patch by Zongyao Qu >zongyao.qu gmail.com<
Modified:
trunk/libvo/vo_corevideo.m
Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m Tue Oct 9 12:23:53 2012 (r35239)
+++ trunk/libvo/vo_corevideo.m Thu Oct 11 18:39:30 2012 (r35240)
@@ -152,7 +152,7 @@ static int config(uint32_t width, uint32
//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 @@ static int config(uint32_t width, uint32
}
//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;
More information about the MPlayer-cvslog
mailing list