vlc/vlc-3.0 | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Fri Apr 13 
12:34:30 2018 +0200| [cb9ed2920f0f362fa1d9a068f9910a8def64342e] | committer: 
Hugo Beauzée-Luyssen

video_text: copy the output colorspace into the region colorspace

(cherry picked from commit 08b8ef7cf313971c69d401a9b05c3b788d08e8d2)
Signed-off-by: Hugo Beauzée-Luyssen <h...@beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=cb9ed2920f0f362fa1d9a068f9910a8def64342e
---

 src/video_output/video_text.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/video_output/video_text.c b/src/video_output/video_text.c
index 58566b4ec6..ef2b094e7c 100644
--- a/src/video_output/video_text.c
+++ b/src/video_output/video_text.c
@@ -93,6 +93,11 @@ static void OSDTextUpdate(subpicture_t *subpic,
         r->i_y += margin_v + fmt_dst->i_y_offset;
     else if (r->i_align & SUBPICTURE_ALIGN_BOTTOM )
         r->i_y += margin_v - fmt_dst->i_y_offset;
+
+    r->fmt.transfer  = fmt_dst->transfer;
+    r->fmt.primaries = fmt_dst->primaries;
+    r->fmt.space     = fmt_dst->space;
+    r->fmt.mastering = fmt_dst->mastering;
 }
 
 static void OSDTextDestroy(subpicture_t *subpic)

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to