[vlc-commits] spu: logo: fix logo not displayed if pos x/y are -1

Thomas Guillem git at videolan.org
Mon Nov 27 14:10:37 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Nov 27 14:09:05 2017 +0100| [a1bcc4857292dcc13c726b0f1c784ef3437d61a4] | committer: Thomas Guillem

spu: logo: fix logo not displayed if pos x/y are -1

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

 modules/spu/logo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/spu/logo.c b/modules/spu/logo.c
index edc5936dee..8ee88aa6ee 100644
--- a/modules/spu/logo.c
+++ b/modules/spu/logo.c
@@ -411,8 +411,8 @@ static subpicture_t *FilterSub( filter_t *p_filter, mtime_t date )
         p_spu->b_absolute = false;
     }
 
-    p_region->i_x = p_sys->i_pos_x;
-    p_region->i_y = p_sys->i_pos_y;
+    p_region->i_x = p_sys->i_pos_x > 0 ? p_sys->i_pos_x : 0;
+    p_region->i_y = p_sys->i_pos_y > 0 ? p_sys->i_pos_y : 0;
 
     p_spu->p_region = p_region;
 



More information about the vlc-commits mailing list