[vlc-devel] [RFC 3/7] osd: render osd text/icons in display dimensions

Salah-Eddin Shaban salah at videolan.org
Mon Feb 19 11:43:06 CET 2018


---
 src/video_output/video_text.c    | 2 ++
 src/video_output/video_widgets.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/video_output/video_text.c b/src/video_output/video_text.c
index 58566b4ec6..73f46f792c 100644
--- a/src/video_output/video_text.c
+++ b/src/video_output/video_text.c
@@ -75,6 +75,7 @@ static void OSDTextUpdate(subpicture_t *subpic,
         return;
 
     r->p_text = text_segment_New( sys->text );
+    r->b_constrained = false;
 
     const float margin_ratio = 0.04;
     const int   margin_h     = margin_ratio * fmt_dst->i_visible_width;
@@ -135,6 +136,7 @@ void vout_OSDText(vout_thread_t *vout, int channel,
     subpic->b_ephemer  = true;
     subpic->b_absolute = false;
     subpic->b_fade     = true;
+    subpic->b_constrained = false;
 
     vout_PutSubpicture(vout, subpic);
 }
diff --git a/src/video_output/video_widgets.c b/src/video_output/video_widgets.c
index d83a17f967..7fea9034b6 100644
--- a/src/video_output/video_widgets.c
+++ b/src/video_output/video_widgets.c
@@ -140,6 +140,7 @@ static subpicture_region_t *OSDRegion(int x, int y, int width, int height)
         return NULL;
     r->i_x = x;
     r->i_y = y;
+    r->b_constrained = false;
 
     return r;
 }
@@ -321,6 +322,7 @@ static void OSDWidget(vout_thread_t *vout, int channel, int type, int position)
     subpic->b_ephemer  = true;
     subpic->b_absolute = true;
     subpic->b_fade     = true;
+    subpic->b_constrained = false;
 
     vout_PutSubpicture(vout, subpic);
 }
-- 
2.13.6



More information about the vlc-devel mailing list