From f0c54158fc91dfe23e4d1054006e1ec46788768e Mon Sep 17 00:00:00 2001 From: Takanobu INAFUKU Date: Mon, 14 Nov 2016 06:21:38 +0900 Subject: [PATCH] Using stringWithUTF8String --- src/ofxHAPAVPlayer.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ofxHAPAVPlayer.mm b/src/ofxHAPAVPlayer.mm index 977c73c..03da5d5 100644 --- a/src/ofxHAPAVPlayer.mm +++ b/src/ofxHAPAVPlayer.mm @@ -78,7 +78,7 @@ void main()\ bFrameNew = false; - NSString *nsPath = [NSString stringWithCString:ofToDataPath(path).c_str() encoding:[NSString defaultCStringEncoding]]; + NSString *nsPath = [NSString stringWithUTF8String:ofToDataPath(path).c_str()]; [delegate load:nsPath]; } @@ -590,4 +590,4 @@ void main()\ ////-------------------------------------------------------------- //string ofxHAPAVPlayer::getMoviePath(){ // -//} \ No newline at end of file +//}