[vlc-commits] vout: spu_place: top 0px is top 0px
Francois Cartegnie
git at videolan.org
Tue Jul 2 15:43:24 CEST 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jul 1 09:46:49 2019 +0200| [b0f5f5e2a129c08adad8b3b18c5448bf0684714d] | committer: Francois Cartegnie
vout: spu_place: top 0px is top 0px
regression and partial revert of eb10f0b60edf5ac22d1b843ba794a67bed269fcd
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b0f5f5e2a129c08adad8b3b18c5448bf0684714d
---
src/video_output/vout_subpictures.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video_output/vout_subpictures.c b/src/video_output/vout_subpictures.c
index 27136c4752..b112bf8646 100644
--- a/src/video_output/vout_subpictures.c
+++ b/src/video_output/vout_subpictures.c
@@ -508,7 +508,7 @@ static void SpuRegionPlace(int *x, int *y,
*y = region->i_y;
} else {
if (i_align & SUBPICTURE_ALIGN_TOP)
- *y = region->i_y + ( subpic->b_subtitle ? region->fmt.i_visible_height : 0 );
+ *y = region->i_y;
else if (i_align & SUBPICTURE_ALIGN_BOTTOM)
*y = subpic->i_original_picture_height - region->fmt.i_visible_height - region->i_y;
else
More information about the vlc-commits
mailing list