Fix subtitle position.
authorCarl Hetherington <cth@carlh.net>
Thu, 26 Dec 2013 18:57:37 +0000 (18:57 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 26 Dec 2013 18:57:37 +0000 (18:57 +0000)
src/lib/player.cc

index 9f9e35709c00493aeed109b2d40b8c7ef1ad5965..29c96833e9c035e72963d4b3949b3b58404391fd 100644 (file)
@@ -262,7 +262,7 @@ Player::emit_video (weak_ptr<Piece> weak_piece, shared_ptr<DecodedVideo> video)
 
                Position<int> const container_offset (
                        (_video_container_size.width - image_size.width) / 2,
-                       (_video_container_size.height - image_size.width) / 2
+                       (_video_container_size.height - image_size.height) / 2
                        );
 
                pi->set_subtitle (_out_subtitle.image, _out_subtitle.position + container_offset);