[vlc-devel] [RFC 4/7] subtitles: render text subtitles in display dimensions
Salah-Eddin Shaban
salah at videolan.org
Mon Feb 19 11:43:07 CET 2018
---
modules/codec/substext.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/codec/substext.h b/modules/codec/substext.h
index af98c2351c..55c88b86aa 100644
--- a/modules/codec/substext.h
+++ b/modules/codec/substext.h
@@ -171,6 +171,7 @@ static void SubpictureTextUpdate(subpicture_t *subpic,
r->i_text_align = p_updtregion->inner_align;
r->b_noregionbg = p_updtregion->flags & UPDT_REGION_IGNORE_BACKGROUND;
r->b_gridmode = p_updtregion->flags & UPDT_REGION_USES_GRID_COORDINATES;
+ r->b_constrained = false;
if (!(p_updtregion->flags & UPDT_REGION_FIXED_DONE))
{
@@ -305,5 +306,6 @@ static inline subpicture_t *decoder_NewSubpictureText(decoder_t *decoder)
text_style_Delete(sys->p_default_style);
free(sys);
}
+ subpic->b_constrained = false;
return subpic;
}
--
2.13.6
More information about the vlc-devel
mailing list