[vlc-devel] [PATCH] Fix OSDEpgText

Philip Höhlein philip.hoehlein at googlemail.com
Wed May 18 22:41:26 CEST 2016


This patch will fix the OSDEpg (triggered by the "position" hotkey.) not
showing text information because of transparent alpha value and invalid
font size.
The argument size of the vout_OSDEpgText function is already in pixels and
not relative, so p_style->i_font_size is the correct style option.

diff --git a/src/video_output/video_epg.c b/src/video_output/video_epg.c
index 720ff35..9e6aa65 100644
--- a/src/video_output/video_epg.c
+++ b/src/video_output/video_epg.c
@@ -133,9 +133,9 @@ static subpicture_region_t * vout_OSDEpgText(const char
*text,
     }
     region->p_text->style = p_style;
     if (p_style) {
-        p_style->f_font_relsize  = __MIN( size, 0 );
+        p_style->i_font_size  = __MAX(size ,1 );
         p_style->i_font_color = color;
-        p_style->i_font_alpha = 0;
+        p_style->i_font_alpha = STYLE_ALPHA_OPAQUE;
         p_style->i_features |= STYLE_HAS_FONT_ALPHA | STYLE_HAS_FONT_COLOR;
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160518/6ced7d2a/attachment.html>


More information about the vlc-devel mailing list