ソースを参照

VLCLibrary: use Freetype instead of Quartztext text renderer

(cherry picked from commit 41948137263853a3cd2b76680c3696e230ac550c)
Felix Paul Kühne 9 年 前
コミット
b7b9f6199b
1 ファイル変更3 行追加3 行削除
  1. 3 3
      Sources/VLCLibrary.m

+ 3 - 3
Sources/VLCLibrary.m

@@ -113,7 +113,7 @@ static VLCLibrary * sharedLibrary = nil;
 #ifndef NOSCARYCODECS
                       @"--avcodec-fast",
 #endif
-                      @"--text-renderer=quartztext",
+                      @"--text-renderer=freetype",
                       @"--avi-index=3",
                       @"--extraintf=ios_dialog_provider"];
     }
@@ -126,7 +126,7 @@ static VLCLibrary * sharedLibrary = nil;
         [defaultParams addObject:@"--verbose=4"];                               // Let's not wreck the logs
         [defaultParams addObject:@"--no-sout-keep"];
         [defaultParams addObject:@"--vout=macosx"];                             // Select Mac OS X video output
-        [defaultParams addObject:@"--text-renderer=quartztext"];                // our CoreText-based renderer
+        [defaultParams addObject:@"--text-renderer=freetype"];
         [defaultParams addObject:@"--extraintf=macosx_dialog_provider"];        // Some extra dialog (login, progress) may come up from here
 
         [[NSUserDefaults standardUserDefaults] setObject:defaultParams forKey:@"VLCParams"];
@@ -204,7 +204,7 @@ static void HandleMessage(void *data,
         return;
     }
 
-    if (!str)
+    if (str == NULL)
         return;
 
     VKLog(@"%@", [NSString stringWithUTF8String:str]);