[vlc-devel] [patch] private text renderer API patch for MobileVLCKit broke OS X build
Florent Pillet
fpillet at gmail.com
Thu Apr 17 11:29:13 CEST 2014
Here's a quick patch that should be applied to VLCKit so as to not break compilation for OS X with the latest experimental changes made in MobileVLCKit
Florent
diff --git a/Sources/VLCMediaPlayer.m b/Sources/VLCMediaPlayer.m
index e5a32ac..51e6001 100644
--- a/Sources/VLCMediaPlayer.m
+++ b/Sources/VLCMediaPlayer.m
@@ -447,20 +447,26 @@ static void HandleMediaPlayerMediaChanged(const libvlc_event_t * event, void * s
return libvlc_video_get_spu_delay(_playerInstance);
}
+#if TARGET_OS_IPHONE
- (void)setTextRendererFontSize:(NSNumber *)fontSize
{
libvlc_video_set_textrenderer_int(_playerInstance, libvlc_textrender_fontsize, [fontSize intValue]);
}
+#endif
+#if TARGET_OS_IPHONE
- (void)setTextRendererFont:(NSString *)fontname
{
libvlc_video_set_textrenderer_string(_playerInstance, libvlc_textrender_font, [fontname UTF8String]);
}
+#endif
+#if TARGET_OS_IPHONE
- (void)setTextRendererFontColor:(NSNumber *)fontColor
{
libvlc_video_set_textrenderer_int(_playerInstance, libvlc_textrender_fontcolor, [fontColor intValue]);
}
+#endif
#pragma mark -
#pragma mark Video Crop geometry
More information about the vlc-devel
mailing list